File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 20
20
" test"
21
21
],
22
22
"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"
25
25
}
26
26
}
Original file line number Diff line number Diff line change 5
5
"build" : " pulp build --censor-lib --strict"
6
6
},
7
7
"devDependencies" : {
8
- "pulp" : " ^8.2.0 " ,
9
- "purescript" : " ^0.8.5 " ,
8
+ "pulp" : " ^9.0.1 " ,
9
+ "purescript" : " ^0.9.1 " ,
10
10
"purescript-psa" : " ^0.3.8" ,
11
11
"rimraf" : " ^2.5.2"
12
12
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Prelude
9
9
10
10
import Data.Array (mapMaybe )
11
11
import Data.Either (Either (), either )
12
- import Data.List (fromList , toList )
12
+ import Data.List (toUnfoldable , fromFoldable )
13
13
import Data.Maybe (Maybe (..), fromMaybe )
14
14
import Data.String (joinWith )
15
15
import Data.StrMap as SM
@@ -31,7 +31,7 @@ runStyles :: Styles -> SM.StrMap String
31
31
runStyles (Styles m) = m
32
32
33
33
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)
35
35
36
36
-- | Render a set of rules as an inline style.
37
37
-- |
@@ -46,7 +46,7 @@ style :: forall i. CSS -> Prop i
46
46
style = prop (propName " style" ) (Just $ attrName " style" ) <<< Styles <<< rules <<< runS
47
47
where
48
48
rules :: Array Rule -> SM.StrMap String
49
- rules rs = SM .fromList (toList properties)
49
+ rules rs = SM .fromList (fromFoldable properties)
50
50
where
51
51
properties :: Array (Tuple String String )
52
52
properties = mapMaybe property rs >>= collect >>> rights
You can’t perform that action at this time.
0 commit comments