From f3c419c74a95778648fe87d1a009cb12374e28b2 Mon Sep 17 00:00:00 2001 From: Kevin Cotrone Date: Mon, 3 Aug 2015 16:10:34 -0500 Subject: [PATCH 1/2] Exported Attribute constructor in GHCJS.VDOM.Unsafe --- src/GHCJS/VDOM/Unsafe.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GHCJS/VDOM/Unsafe.hs b/src/GHCJS/VDOM/Unsafe.hs index 50e3cbe..19e0cde 100644 --- a/src/GHCJS/VDOM/Unsafe.hs +++ b/src/GHCJS/VDOM/Unsafe.hs @@ -4,7 +4,8 @@ -} module GHCJS.VDOM.Unsafe ( Attributes(..), Children(..) , Attributes', Children' - , unsafeToAttributes, unsafeToChildren ) where + , unsafeToAttributes, unsafeToChildren + , Attribute(..) ) where import GHCJS.Types From d5f4de34a503950e7f695bde0251afee20360b53 Mon Sep 17 00:00:00 2001 From: Kevin Cotrone Date: Mon, 3 Aug 2015 16:59:46 -0500 Subject: [PATCH 2/2] Export a function to create an Attribute but not the constructor --- src/GHCJS/VDOM/Attribute.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GHCJS/VDOM/Attribute.hs b/src/GHCJS/VDOM/Attribute.hs index 3119043..059fe99 100644 --- a/src/GHCJS/VDOM/Attribute.hs +++ b/src/GHCJS/VDOM/Attribute.hs @@ -2,6 +2,7 @@ module GHCJS.VDOM.Attribute ( Attribute , Attributes + , mkAttribute -- * some predefined attributes , class_ , id @@ -35,3 +36,6 @@ mkAttrs' ''JSString [ ("class_", "className") ] mkAttrs ''Int [ "key", "width", "height" ] + +mkAttribute :: JSString -> JSRef () -> Attribute +mkAttribute = Attribute \ No newline at end of file