Skip to content

Commit 3554b3b

Browse files
committed
Merge pull request #4 from gonimo/master
Fixed naming according to purescript-css
2 parents 35fa5f7 + 711f633 commit 3554b3b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test"
2121
],
2222
"dependencies": {
23-
"purescript-css": "^0.4.0",
23+
"purescript-css": "^0.5.2",
2424
"purescript-halogen": "^0.5.3"
2525
}
2626
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"gulp-jscs": "^1.6.0",
88
"gulp-jshint": "^1.11.2",
99
"gulp-purescript": "^0.7.0",
10-
"purescript": "0.7.4",
10+
"purescript": "^0.7.6",
1111
"rimraf": "^2.4.1"
1212
}
1313
}

src/Halogen/HTML/CSS.purs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import Data.String (joinWith)
1515
import Data.Tuple (Tuple(..))
1616
import qualified Data.StrMap as SM
1717

18-
import Css.Property (Key(), Value())
19-
import Css.Render (render, renderedSheet, collect)
20-
import Css.Stylesheet (Css(), Rule(..), runS)
18+
import CSS.Property (Key(), Value())
19+
import CSS.Render (render, renderedSheet, collect)
20+
import CSS.Stylesheet (CSS(), Rule(..), runS)
2121

2222
import Halogen.HTML.Core (HTML(), Prop(), IsProp, prop, propName, attrName)
2323
import qualified Halogen.HTML as H
@@ -39,11 +39,11 @@ instance stylesIsProp :: IsProp Styles where
3939
-- | For example:
4040
-- |
4141
-- | ```purescript
42-
-- | H.div [ Css.style do color red
42+
-- | H.div [ CSS.style do color red
4343
-- | display block ]
4444
-- | [ ... ]
4545
-- | ```
46-
style :: forall i. Css -> Prop i
46+
style :: forall i. CSS -> Prop i
4747
style = prop (propName "style") (Just $ attrName "style") <<< Styles <<< rules <<< runS
4848
where
4949
rules :: Array Rule -> SM.StrMap String
@@ -60,7 +60,7 @@ style = prop (propName "style") (Just $ attrName "style") <<< Styles <<< rules <
6060
rights = mapMaybe (either (const Nothing) Just)
6161

6262
-- | Render a set of rules as a `style` element.
63-
stylesheet :: forall p i. Css -> HTML p i
63+
stylesheet :: forall p i. CSS -> HTML p i
6464
stylesheet css = H.style [ P.type_ "text/css" ] [ H.text content ]
6565
where
6666
content = fromMaybe "" $ renderedSheet $ render css

src/Halogen/HTML/CSS/Indexed.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ module Halogen.HTML.CSS.Indexed where
22

33
import Unsafe.Coerce (unsafeCoerce)
44

5-
import Css.Stylesheet (Css())
5+
import CSS.Stylesheet (CSS())
66

77
import Halogen.HTML.Elements.Indexed (NoninteractiveNode())
88
import Halogen.HTML.Properties.Indexed (IProp(), I())
99
import qualified Halogen.HTML.CSS as CSS
1010

11-
style :: forall i r. Css -> IProp (style :: I | r) i
11+
style :: forall i r. CSS -> IProp (style :: I | r) i
1212
style = unsafeCoerce CSS.style
1313

14-
stylesheet :: forall p i. Css -> NoninteractiveNode (media :: I, onError :: I, onLoad :: I, scoped :: I, mediaType :: I) p i
14+
stylesheet :: forall p i. CSS -> NoninteractiveNode (media :: I, onError :: I, onLoad :: I, scoped :: I, mediaType :: I) p i
1515
stylesheet = unsafeCoerce CSS.stylesheet

0 commit comments

Comments
 (0)