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 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}
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Prelude
99
1010import Data.Array (mapMaybe )
1111import Data.Either (Either (), either )
12- import Data.List (fromList , toList )
12+ import Data.List (toUnfoldable , fromFoldable )
1313import Data.Maybe (Maybe (..), fromMaybe )
1414import Data.String (joinWith )
1515import Data.StrMap as SM
@@ -31,7 +31,7 @@ runStyles :: Styles -> SM.StrMap String
3131runStyles (Styles m) = m
3232
3333instance 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
4646style = 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
You can’t perform that action at this time.
0 commit comments