Sitelet https://github.com/purescript-contrib/purescript-css/pull/60/files
Skip to content
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
18 changes: 9 additions & 9 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"tests"
],
"dependencies": {
"purescript-generics": "^3.1.0",
"purescript-nonempty": "^3.0.0",
"purescript-profunctor": "^2.0.0",
"purescript-strings": "^2.0.2",
"purescript-these": "^2.0.0",
"purescript-transformers": "^2.0.1",
"purescript-colors": "^2.0.0",
"purescript-console": "^2.0.0"
"purescript-generics": "^4.0.0",
"purescript-nonempty": "^4.0.0",
"purescript-profunctor": "^3.0.0",
"purescript-strings": "^3.0.0",
"purescript-these": "^3.0.0",
"purescript-transformers": "^3.2.0",
"purescript-colors": "^3.0.0",
"purescript-console": "^3.0.0"
},
"devDependencies": {
"purescript-exceptions": "^2.0.0"
"purescript-exceptions": "^3.0.0"
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"test": "pulp test"
},
"devDependencies": {
"pulp": "^9.0.1",
"purescript-psa": "^0.3.9",
"purescript": "^0.10.1",
"rimraf": "^2.5.0"
"pulp": "^11.0.0",
"purescript-psa": "^0.5.1",
"purescript": "^0.11.4",
"rimraf": "^2.6.1"
}
}
2 changes: 1 addition & 1 deletion src/CSS/Common.purs
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ browsers = Prefixed

-- | Syntax for CSS function call.

call :: forall s. (IsString s, Monoid s) => s -> s -> s
call :: forall s. IsString s => Monoid s => s -> s -> s
call fn arg = fn <> fromString "(" <> arg <> fromString ")"
4 changes: 2 additions & 2 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ nestedNodesWithEmptyParent = render do
fromString "#parent" ? do
fromString "#child" ? display block

assertEqual :: forall a. (Eq a, Show a) => a -> a -> Eff (err :: EXCEPTION) Unit
assertEqual :: forall a. Eq a => Show a => a -> a -> Eff (exception :: EXCEPTION) Unit
assertEqual x y = unless (x == y) <<< throwException <<< error $ "Assertion failed: " <> show x <> " /= " <> show y

main :: Eff (err :: EXCEPTION) Unit
main :: Eff (exception :: EXCEPTION) Unit
main = do
renderedInline example1 `assertEqual` Just "color: hsl(0.0, 100.0%, 50.0%); display: block"
renderedInline example2 `assertEqual` Just "display: inline-block"
Expand Down