Skip to content

Commit

Permalink
Allow definition of custom attributes
Browse files Browse the repository at this point in the history
Close ghcjs#13
  • Loading branch information
hanshoglund committed Dec 16, 2015
1 parent 454f6c6 commit 9e13e43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GHCJS/VDOM/Attribute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module GHCJS.VDOM.Attribute ( Attribute
, Attributes
, custom
-- * some predefined attributes
, class_
, id
Expand All @@ -26,6 +27,9 @@ import GHCJS.Types
import GHCJS.VDOM.Internal.Types
import GHCJS.VDOM.Internal

custom :: JSString -> JSVal -> Attribute
custom = Attribute

mkAttrs ''JSString [ "id", "href", "src", "alt", "title"
, "lang", "name", "target", "value"
]
Expand Down

0 comments on commit 9e13e43

Please sign in to comment.