Skip to content

Commit cea78fb

Browse files
committed
Bump deps for compiler/0.12
1 parent 0374573 commit cea78fb

13 files changed

Lines changed: 54 additions & 57 deletions

File tree

‎bower.json‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-enums": "^3.1.0",
20-
"purescript-functions": "^3.0.0",
21-
"purescript-generics": "^4.0.0",
22-
"purescript-integers": "^3.0.0",
23-
"purescript-foldable-traversable": "^3.0.0",
24-
"purescript-maps": "^3.0.0",
25-
"purescript-math": "^2.0.0"
19+
"purescript-enums": "#compiler/0.12",
20+
"purescript-functions": "#compiler/0.12",
21+
"purescript-generics-rep": "#compiler/0.12",
22+
"purescript-integers": "#compiler/0.12",
23+
"purescript-foldable-traversable": "#compiler/0.12",
24+
"purescript-maps": "#compiler/0.12",
25+
"purescript-math": "#compiler/0.12",
26+
"purescript-proxy": "#compiler/0.12"
2627
},
2728
"devDependencies": {
28-
"purescript-assert": "^3.0.0",
29-
"purescript-console": "^3.0.0",
30-
"purescript-strings": "^3.0.0"
29+
"purescript-assert": "#compiler/0.12",
30+
"purescript-console": "#compiler/0.12",
31+
"purescript-strings": "#compiler/0.12"
3132
}
3233
}

‎package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
55
"build": "eslint src && pulp build -- --censor-lib --strict",
6-
"test": "pulp test"
6+
"test": "pulp test --check-main-type Effect.Effect"
77
},
88
"devDependencies": {
9-
"eslint": "^3.17.1",
10-
"pulp": "^11.0.x",
11-
"purescript-psa": "^0.5.x",
12-
"rimraf": "^2.6.1"
9+
"eslint": "^4.19.1",
10+
"pulp": "^12.0.x",
11+
"purescript-psa": "^0.6.x",
12+
"rimraf": "^2.6.2"
1313
}
1414
}

‎src/Data/Date.purs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Prelude
1717
import Data.Date.Component (Day, Month(..), Weekday(..), Year)
1818
import Data.Enum (toEnum, fromEnum)
1919
import Data.Function.Uncurried (Fn3, runFn3, Fn4, runFn4, Fn6, runFn6)
20-
import Data.Generic (class Generic)
20+
import Data.Generic.Rep (class Generic)
2121
import Data.Maybe (Maybe(..), fromJust)
2222
import Data.Time.Duration (class Duration, toDuration, Milliseconds)
2323

@@ -45,7 +45,7 @@ exactDate y m d =
4545

4646
derive instance eqDate :: Eq Date
4747
derive instance ordDate :: Ord Date
48-
derive instance genericDate :: Generic Date
48+
derive instance genericDate :: Generic Date _
4949

5050
instance boundedDate :: Bounded Date where
5151
bottom = Date bottom bottom bottom

‎src/Data/Date/Component.purs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Data.Date.Component
88
import Prelude
99

1010
import Data.Enum (class Enum, class BoundedEnum, toEnum, fromEnum, Cardinality(..))
11-
import Data.Generic (class Generic)
11+
import Data.Generic.Rep (class Generic)
1212
import Data.Maybe (Maybe(..))
1313

1414
-- | A year component for a date.
@@ -20,7 +20,7 @@ newtype Year = Year Int
2020

2121
derive newtype instance eqYear :: Eq Year
2222
derive newtype instance ordYear :: Ord Year
23-
derive instance genericYear :: Generic Year
23+
derive instance genericYear :: Generic Year _
2424

2525
-- Note: these seemingly arbitrary bounds come from relying on JS for date
2626
-- manipulations, as it only supports date ±100,000,000 days of the Unix epoch.
@@ -61,7 +61,7 @@ data Month
6161

6262
derive instance eqMonth :: Eq Month
6363
derive instance ordMonth :: Ord Month
64-
derive instance genericMonth :: Generic Month
64+
derive instance genericMonth :: Generic Month _
6565

6666
instance boundedMonth :: Bounded Month where
6767
bottom = January
@@ -124,7 +124,7 @@ newtype Day = Day Int
124124

125125
derive newtype instance eqDay :: Eq Day
126126
derive newtype instance ordDay :: Ord Day
127-
derive instance genericDay :: Generic Day
127+
derive instance genericDay :: Generic Day _
128128

129129
instance boundedDay :: Bounded Day where
130130
bottom = Day 1
@@ -156,7 +156,7 @@ data Weekday
156156

157157
derive instance eqWeekday :: Eq Weekday
158158
derive instance ordWeekday :: Ord Weekday
159-
derive instance genericWeekday :: Generic Weekday
159+
derive instance genericWeekday :: Generic Weekday _
160160

161161
instance boundedWeekday :: Bounded Weekday where
162162
bottom = Monday

‎src/Data/DateTime.purs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Prelude
1717
import Data.Date (Date, Day, Month(..), Weekday(..), Year, canonicalDate, day, exactDate, month, weekday, year)
1818
import Data.Enum (toEnum, fromEnum)
1919
import Data.Function.Uncurried (Fn2, runFn2)
20-
import Data.Generic (class Generic)
20+
import Data.Generic.Rep (class Generic)
2121
import Data.Time (Hour, Millisecond, Minute, Second, Time(..), hour, setHour, millisecond, setMillisecond, minute, setMinute, second, setSecond)
2222
import Data.Time.Duration (class Duration, fromDuration, toDuration, Milliseconds)
2323
import Data.Maybe (Maybe(..))
@@ -27,7 +27,7 @@ data DateTime = DateTime Date Time
2727

2828
derive instance eqDateTime :: Eq DateTime
2929
derive instance ordDateTime :: Ord DateTime
30-
derive instance genericDateTime :: Generic DateTime
30+
derive instance genericDateTime :: Generic DateTime _
3131

3232
instance boundedDateTime :: Bounded DateTime where
3333
bottom = DateTime bottom bottom

‎src/Data/DateTime/Instant.purs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Prelude
1212
import Data.DateTime (Millisecond, Second, Minute, Hour, Day, Year, DateTime(..), Date, Time(..), canonicalDate, millisecond, second, minute, hour, day, month, year)
1313
import Data.Enum (fromEnum, toEnum)
1414
import Data.Function.Uncurried (Fn7, runFn7)
15-
import Data.Generic (class Generic)
15+
import Data.Generic.Rep (class Generic)
1616
import Data.Maybe (Maybe(..), fromJust)
1717
import Data.Time.Duration (Milliseconds(..))
1818

@@ -27,7 +27,7 @@ newtype Instant = Instant Milliseconds
2727

2828
derive newtype instance eqDateTime :: Eq Instant
2929
derive newtype instance ordDateTime :: Ord Instant
30-
derive instance genericDateTime :: Generic Instant
30+
derive instance genericDateTime :: Generic Instant _
3131

3232
instance boundedInstant :: Bounded Instant where
3333
bottom = Instant (Milliseconds (-8639977881600000.0))

‎src/Data/DateTime/Locale.purs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Prelude
44
import Control.Comonad (class Comonad, class Extend)
55
import Data.DateTime (Date, Time, DateTime)
66
import Data.Foldable (class Foldable)
7-
import Data.Generic (class Generic)
7+
import Data.Generic.Rep (class Generic)
88
import Data.Maybe (Maybe)
99
import Data.Newtype (class Newtype)
1010
import Data.Time.Duration (Minutes)
@@ -16,7 +16,7 @@ data Locale = Locale (Maybe LocaleName) Minutes
1616

1717
derive instance eqLocale :: Eq Locale
1818
derive instance ordLocale :: Ord Locale
19-
derive instance genericLocale :: Generic Locale
19+
derive instance genericLocale :: Generic Locale _
2020

2121
instance showLocale :: Show Locale where
2222
show (Locale name offset) = "(Locale " <> show name <> " " <> show offset <> ")"
@@ -27,7 +27,7 @@ newtype LocaleName = LocaleName String
2727
derive instance newtypeLocaleName :: Newtype LocaleName _
2828
derive newtype instance eqLocaleName :: Eq LocaleName
2929
derive newtype instance ordLocaleName :: Ord LocaleName
30-
derive instance genericLocaleName :: Generic LocaleName
30+
derive instance genericLocaleName :: Generic LocaleName _
3131

3232
instance showLocaleName :: Show LocaleName where
3333
show (LocaleName name) = "(LocaleName " <> show name <> ")"
@@ -41,7 +41,7 @@ data LocalValue a = LocalValue Locale a
4141

4242
derive instance eqLocalValue :: Eq a => Eq (LocalValue a)
4343
derive instance ordLocalValue :: Ord a => Ord (LocalValue a)
44-
derive instance genericLocalValue :: Generic a => Generic (LocalValue a)
44+
derive instance genericLocalValue :: Generic (LocalValue a) _
4545

4646
instance showLocalValue :: Show a => Show (LocalValue a) where
4747
show (LocalValue n a) = "(LocalValue " <> show n <> " " <> show a <> ")"
@@ -62,7 +62,7 @@ instance foldableLocalValue :: Foldable LocalValue where
6262

6363
instance traversableLocalValue :: Traversable LocalValue where
6464
traverse f (LocalValue n a) = LocalValue <$> pure n <*> f a
65-
sequence = traverse id
65+
sequence = traverse identity
6666

6767
-- | A date value with a locale.
6868
type LocalDate = LocalValue Date

‎src/Data/Interval.purs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ instance showInterval :: (Show d, Show a) => Show (Interval d a) where
7070
show (DurationOnly d) = "(DurationOnly " <> show d <> ")"
7171

7272
instance functorInterval :: Functor (Interval d) where
73-
map = bimap id
73+
map = bimap identity
7474

7575
instance bifunctorInterval :: Bifunctor Interval where
7676
bimap _ f (StartEnd x y) = StartEnd (f x) (f y)

‎src/Data/Interval/Duration.purs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module Data.Interval.Duration
1414
import Prelude
1515

1616
import Data.Map as Map
17-
import Data.Monoid (class Monoid, mempty)
1817
import Data.Newtype (class Newtype)
1918

2019
newtype Duration = Duration (Map.Map DurationComponent Number)

‎src/Data/Time.purs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Data.Time
1212
import Prelude
1313

1414
import Data.Enum (fromEnum, toEnum)
15-
import Data.Generic (class Generic)
15+
import Data.Generic.Rep (class Generic)
1616
import Data.Int as Int
1717
import Data.Maybe (fromJust)
1818
import Data.Newtype (unwrap)
@@ -28,7 +28,7 @@ data Time = Time Hour Minute Second Millisecond
2828

2929
derive instance eqTime :: Eq Time
3030
derive instance ordTime :: Ord Time
31-
derive instance genericTime :: Generic Time
31+
derive instance genericTime :: Generic Time _
3232

3333
instance boundedTime :: Bounded Time where
3434
bottom = Time bottom bottom bottom bottom

0 commit comments

Comments
 (0)