Skip to content

changes for 0.12 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"package.json"
],
"dependencies": {
"purescript-css": "^3.3.0",
"purescript-halogen": "^3.0.0"
"purescript-css": "^4.0.0",
"purescript-halogen": "^4.0.0"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"build": "pulp build -- --censor-lib --strict"
},
"devDependencies": {
"pulp": "^11.0.0",
"purescript": "0.11.4",
"purescript-psa": "^0.5.0"
"pulp": "^12.2.0",
"purescript": "0.12.0",
"purescript-psa": "^0.6.0"
}
}
10 changes: 5 additions & 5 deletions src/Halogen/HTML/CSS.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import Data.Either (Either)
import Data.Foldable (foldMap)
import Data.Maybe (Maybe(..), fromMaybe)
import Data.MediaType (MediaType(..))
import Data.StrMap as SM
import Data.String (joinWith)
import Data.Tuple (Tuple(..))
import Foreign.Object as Object

import Halogen.HTML as HH
import Halogen.HTML.Elements as HE
Expand All @@ -41,11 +41,11 @@ style =
<<< rules
<<< runS
where
toString ∷ SM.StrMap String → String
toString = joinWith "; " <<< SM.foldMap (\key val → [ key <> ": " <> val])
toString ∷ Object.Object String → String
toString = joinWith "; " <<< Object.foldMap (\key val → [ key <> ": " <> val])

rules ∷ Array Rule → SM.StrMap String
rules rs = SM.fromFoldable properties
rules ∷ Array Rule → Object.Object String
rules rs = Object.fromFoldable properties
where
properties ∷ Array (Tuple String String)
properties = mapMaybe property rs >>= collect >>> rights
Expand Down