Skip to content

Commit 2341684

Browse files
committed
Update dependencies
1 parent fa746d5 commit 2341684

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

bower.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"!LICENSE"
1717
],
1818
"dependencies": {
19-
"purescript-foreign": "^1.0.0",
20-
"purescript-maps": "^1.0.0",
21-
"purescript-tuples": "^1.0.0",
22-
"purescript-monoid": "^1.0.0",
23-
"purescript-maybe": "^1.0.0",
24-
"purescript-contravariant": "^1.0.0"
19+
"purescript-foreign": "^3.0.0",
20+
"purescript-maps": "^2.0.0",
21+
"purescript-tuples": "^3.0.0",
22+
"purescript-monoid": "^2.0.0",
23+
"purescript-maybe": "^2.0.0",
24+
"purescript-contravariant": "^2.0.0"
2525
},
2626
"devDependencies": {
27-
"purescript-console": "^1.0.0"
27+
"purescript-console": "^2.0.0"
2828
}
2929
}

src/Data/Options.purs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
module Data.Options
2-
( Options()
2+
( Options
33
, runOptions
44
, options
5-
, Option()
5+
, Option
66
, assoc, (:=)
77
, optional
88
, opt
99
, tag
1010
, defaultToOptions
1111
) where
1212

13-
import Prelude (class Semigroup, Unit, (<<<), ($), (<>))
13+
import Prelude
1414

15-
import Data.Foreign (toForeign, Foreign())
16-
import Data.Maybe (Maybe(), maybe)
15+
import Data.Foreign (toForeign, Foreign)
16+
import Data.Maybe (Maybe, maybe)
1717
import Data.Monoid (mempty, class Monoid)
18-
import Data.Op (Op(Op), runOp)
18+
import Data.Newtype (unwrap)
19+
import Data.Op (Op(..))
1920
import Data.StrMap as StrMap
2021
import Data.Tuple (Tuple(..))
2122

2223
-- | The `Options` type represents a set of options. The type argument is a
2324
-- | phantom type, which is useful for ensuring that options for one particular
2425
-- | API are not accidentally passed to some other API.
25-
newtype Options opt =
26-
Options (Array (Tuple String Foreign))
26+
newtype Options opt = Options (Array (Tuple String Foreign))
2727

2828
runOptions :: forall opt. Options opt -> Array (Tuple String Foreign)
2929
runOptions (Options xs) = xs
@@ -47,7 +47,7 @@ type Option opt = Op (Options opt)
4747

4848
-- | Associates a value with a specific option.
4949
assoc :: forall opt value. Option opt value -> value -> Options opt
50-
assoc o value = runOp o value
50+
assoc = unwrap
5151

5252
-- | An infix version of `assoc`.
5353
infixr 6 assoc as :=

test/Test/Main.purs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module Test.Main where
22

3-
import Prelude (class Show, Unit(), (<<<), (<>), (+), ($), map, show)
3+
import Prelude
44

5-
import Control.Monad.Eff (Eff())
6-
import Control.Monad.Eff.Console (CONSOLE(), log)
5+
import Control.Monad.Eff (Eff)
6+
import Control.Monad.Eff.Console (CONSOLE, log)
77

8-
import Data.Foreign (Foreign())
8+
import Data.Foreign (Foreign)
99
import Data.Functor.Contravariant (cmap)
1010
import Data.Maybe (Maybe(..))
11-
import Data.Options (Option(), Options(), optional, options, opt, (:=))
11+
import Data.Options (Option, Options, optional, options, opt, (:=))
1212

1313
data Shape = Circle | Square | Triangle
1414

0 commit comments

Comments
 (0)