Skip to content

Commit c16f99a

Browse files
authored
Merge pull request #11 from berdario/master
Purescript 0.9 update
2 parents 1bfbb44 + 82b4610 commit c16f99a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test"
2121
],
2222
"dependencies": {
23-
"purescript-css": "^0.6.0",
24-
"purescript-halogen": "^0.8.0"
23+
"purescript-css": "^1.0.0",
24+
"purescript-halogen": "^0.9.0"
2525
}
2626
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"build": "pulp build --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"pulp": "^8.2.0",
9-
"purescript": "^0.8.5",
8+
"pulp": "^9.0.1",
9+
"purescript": "^0.9.1",
1010
"purescript-psa": "^0.3.8",
1111
"rimraf": "^2.5.2"
1212
}

src/Halogen/HTML/CSS.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Prelude
99

1010
import Data.Array (mapMaybe)
1111
import Data.Either (Either(), either)
12-
import Data.List (fromList, toList)
12+
import Data.List (toUnfoldable, fromFoldable)
1313
import Data.Maybe (Maybe(..), fromMaybe)
1414
import Data.String (joinWith)
1515
import Data.StrMap as SM
@@ -31,7 +31,7 @@ runStyles :: Styles -> SM.StrMap String
3131
runStyles (Styles m) = m
3232

3333
instance stylesIsProp :: IsProp Styles where
34-
toPropString _ _ (Styles m) = joinWith "; " $ (\(Tuple key value) -> key <> ": " <> value) <$> fromList (SM.toList m)
34+
toPropString _ _ (Styles m) = joinWith "; " $ (\(Tuple key value) -> key <> ": " <> value) <$> toUnfoldable (SM.toList m)
3535

3636
-- | Render a set of rules as an inline style.
3737
-- |
@@ -46,7 +46,7 @@ style :: forall i. CSS -> Prop i
4646
style = prop (propName "style") (Just $ attrName "style") <<< Styles <<< rules <<< runS
4747
where
4848
rules :: Array Rule -> SM.StrMap String
49-
rules rs = SM.fromList (toList properties)
49+
rules rs = SM.fromList (fromFoldable properties)
5050
where
5151
properties :: Array (Tuple String String)
5252
properties = mapMaybe property rs >>= collect >>> rights

0 commit comments

Comments
 (0)