Skip to content

Commit 11723ba

Browse files
authored
Merge pull request #43 from chexxor/update-deps
Update all dependency versions. Use PSC 0.10.
2 parents 7a39810 + d7a98aa commit 11723ba

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

bower.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"tests"
2222
],
2323
"dependencies": {
24-
"purescript-generics": "^1.0.0",
25-
"purescript-nonempty": "^1.1.0",
26-
"purescript-profunctor": "^1.0.0",
27-
"purescript-strings": "^1.0.0",
28-
"purescript-these": "^1.0.0",
29-
"purescript-transformers": "^1.0.0",
30-
"purescript-colors": "^1.0.0",
31-
"purescript-console": "^1.0.0"
24+
"purescript-generics": "^3.1.0",
25+
"purescript-nonempty": "^3.0.0",
26+
"purescript-profunctor": "^2.0.0",
27+
"purescript-strings": "^2.0.2",
28+
"purescript-these": "^2.0.0",
29+
"purescript-transformers": "^2.0.1",
30+
"purescript-colors": "^2.0.0",
31+
"purescript-console": "^2.0.0"
3232
},
3333
"devDependencies": {
34-
"purescript-exceptions": "^1.0.0"
34+
"purescript-exceptions": "^2.0.0"
3535
}
3636
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^9.0.0",
9+
"pulp": "^9.0.1",
1010
"purescript-psa": "^0.3.9",
11-
"purescript": "^0.9.1",
11+
"purescript": "^0.10.1",
1212
"rimraf": "^2.5.0"
1313
}
1414
}

src/CSS/Animation.purs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
module CSS.Animation where
22

33
import Prelude
4-
5-
import Data.Foldable (for_)
6-
import Data.Generic (class Generic)
7-
import Data.Tuple.Nested (tuple7)
8-
94
import CSS.Property (class Val, Value, value)
105
import CSS.String (class IsString, fromString)
116
import CSS.Stylesheet (CSS, key)
127
import CSS.Time (Time)
138
import CSS.Transition (TimingFunction)
9+
import Data.Foldable (for_)
10+
import Data.Generic (class Generic)
11+
import Data.Tuple.Nested (tuple7)
1412

1513
newtype AnimationDirection = AnimationDirection Value
1614

src/CSS/Property.purs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module CSS.Property where
22

33
import Prelude
4-
4+
import CSS.String (class IsString, fromString)
5+
import Color (Color, cssStringHSLA)
56
import Data.Foldable (intercalate)
67
import Data.Generic (class Generic)
78
import Data.Maybe (fromMaybe)
@@ -10,10 +11,6 @@ import Data.NonEmpty (NonEmpty, oneOf)
1011
import Data.Profunctor.Strong (second)
1112
import Data.Tuple (Tuple(..), lookup)
1213

13-
import Color (Color, cssStringHSLA)
14-
15-
import CSS.String (class IsString, fromString)
16-
1714
data Prefixed
1815
= Prefixed (Array (Tuple String String))
1916
| Plain String
@@ -72,9 +69,6 @@ instance monoidValue :: Monoid Value where
7269
class Val a where
7370
value :: a -> Value
7471

75-
instance valString :: Val String where
76-
value = fromString
77-
7872
newtype Literal = Literal String
7973

8074
derive instance eqLiteral :: Eq Literal
@@ -87,6 +81,14 @@ instance valLiteral :: Val Literal where
8781
instance valValue :: Val Value where
8882
value = id
8983

84+
instance valString :: Val String where
85+
value = fromString
86+
87+
instance valUnit :: Val Unit where
88+
value u = fromString ""
89+
90+
-- When `b` is Unit, the rendered value will have an extra
91+
-- space appended to end. Shouldn't hurt. I'd fix if I knew how.
9092
instance valTuple :: (Val a, Val b) => Val (Tuple a b) where
9193
value (Tuple a b) = value a <> fromString " " <> value b
9294

test/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ main :: Eff (err :: EXCEPTION) Unit
5050
main = do
5151
renderedInline example1 `assertEqual` Just "color: hsl(0.0, 100.0%, 50.0%); display: block"
5252
renderedInline example2 `assertEqual` Just "display: inline-block"
53-
renderedInline example3 `assertEqual` Just "border: dashed 2.0px hsl(240.0, 100.0%, 50.0%)"
53+
renderedInline example3 `assertEqual` Just "border: dashed 2.0px hsl(240.0, 100.0%, 50.0%) "
5454

5555
selector (Selector (Refinement [Id "test"]) Star) `assertEqual` "#test"
5656

0 commit comments

Comments
 (0)