File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
22
" package.json"
23
23
],
24
24
"dependencies" : {
25
- "purescript-css" : " ^3.3 .0" ,
26
- "purescript-halogen" : " ^3 .0.0"
25
+ "purescript-css" : " ^4.0 .0" ,
26
+ "purescript-halogen" : " ^4 .0.0"
27
27
}
28
28
}
Original file line number Diff line number Diff line change 6
6
"build" : " pulp build -- --censor-lib --strict"
7
7
},
8
8
"devDependencies" : {
9
- "pulp" : " ^11.0 .0" ,
10
- "purescript" : " 0.11.4 " ,
11
- "purescript-psa" : " ^0.5 .0"
9
+ "pulp" : " ^12.2 .0" ,
10
+ "purescript" : " 0.12.0 " ,
11
+ "purescript-psa" : " ^0.6 .0"
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ import Data.Either (Either)
16
16
import Data.Foldable (foldMap )
17
17
import Data.Maybe (Maybe (..), fromMaybe )
18
18
import Data.MediaType (MediaType (..))
19
- import Data.StrMap as SM
20
19
import Data.String (joinWith )
21
20
import Data.Tuple (Tuple (..))
21
+ import Foreign.Object as Object
22
22
23
23
import Halogen.HTML as HH
24
24
import Halogen.HTML.Elements as HE
@@ -41,11 +41,11 @@ style =
41
41
<<< rules
42
42
<<< runS
43
43
where
44
- toString ∷ SM.StrMap String → String
45
- toString = joinWith " ; " <<< SM .foldMap (\key val → [ key <> " : " <> val ])
44
+ toString ∷ Object.Object String → String
45
+ toString = joinWith " ; " <<< Object .foldMap (\key val → [ key <> " : " <> val ])
46
46
47
- rules ∷ Array Rule → SM.StrMap String
48
- rules rs = SM .fromFoldable properties
47
+ rules ∷ Array Rule → Object.Object String
48
+ rules rs = Object .fromFoldable properties
49
49
where
50
50
properties ∷ Array (Tuple String String )
51
51
properties = mapMaybe property rs >>= collect >>> rights
You can’t perform that action at this time.
0 commit comments