Skip to content

Commit 9eb899f

Browse files
committed
Update for new class hierarchies
1 parent c334247 commit 9eb899f

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"package.json"
1818
],
1919
"dependencies": {
20-
"purescript-monoid": "^1.0.0-rc.1"
20+
"purescript-monoid": "^1.0.0-rc.2"
2121
}
2222
}

src/Data/Maybe.purs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@ module Data.Maybe where
33
import Control.Alt (class Alt)
44
import Control.Alternative (class Alternative)
55
import Control.Applicative (class Applicative)
6-
import Control.Apply (class Apply, (<*>))
6+
import Control.Apply (class Apply)
77
import Control.Bind (class Bind)
88
import Control.Extend (class Extend)
99
import Control.Monad (class Monad)
1010
import Control.MonadZero (class MonadZero)
1111
import Control.Plus (class Plus)
1212

13-
import Data.BooleanAlgebra (class BooleanAlgebra, conj, disj, not)
1413
import Data.Bounded (class Bounded, top)
15-
import Data.BoundedOrd (class BoundedOrd)
1614
import Data.Eq (class Eq, (==))
1715
import Data.Function (const, id)
18-
import Data.Functor (class Functor, map, (<$>))
16+
import Data.Functor (class Functor, (<$>))
1917
import Data.Functor.Invariant (class Invariant, imapF)
2018
import Data.Monoid (class Monoid)
2119
import Data.Ord (class Ord, compare)
@@ -215,13 +213,6 @@ instance boundedMaybe :: Bounded a => Bounded (Maybe a) where
215213
top = Just top
216214
bottom = Nothing
217215

218-
instance boundedOrdMaybe :: BoundedOrd a => BoundedOrd (Maybe a)
219-
220-
instance booleanAlgebraMaybe :: BooleanAlgebra a => BooleanAlgebra (Maybe a) where
221-
conj x y = conj <$> x <*> y
222-
disj x y = disj <$> x <*> y
223-
not = map not
224-
225216
-- | The `Show` instance allows `Maybe` values to be rendered as a string with
226217
-- | `show` whenever there is an `Show` instance for the type the `Maybe`
227218
-- | contains.

src/Data/Maybe/First.purs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Control.Extend (class Extend, extend)
77
import Control.Monad (class Monad)
88

99
import Data.Bounded (class Bounded, top, bottom)
10-
import Data.BoundedOrd (class BoundedOrd)
1110
import Data.Eq (class Eq, (==))
1211
import Data.Function ((<<<))
1312
import Data.Functor (class Functor, (<$>))
@@ -41,8 +40,6 @@ instance boundedFirst :: (Bounded a) => Bounded (First a) where
4140
top = First top
4241
bottom = First bottom
4342

44-
instance boundedOrdFirst :: BoundedOrd a => BoundedOrd (First a) where
45-
4643
instance functorFirst :: Functor First where
4744
map f (First x) = First (f <$> x)
4845

src/Data/Maybe/Last.purs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Control.Extend (class Extend, extend)
77
import Control.Monad (class Monad)
88

99
import Data.Bounded (class Bounded, top, bottom)
10-
import Data.BoundedOrd (class BoundedOrd)
1110
import Data.Eq (class Eq, (==))
1211
import Data.Function ((<<<))
1312
import Data.Functor (class Functor, (<$>))
@@ -41,8 +40,6 @@ instance boundedLast :: Bounded a => Bounded (Last a) where
4140
top = Last top
4241
bottom = Last bottom
4342

44-
instance boundedOrdLast :: BoundedOrd a => BoundedOrd (Last a) where
45-
4643
instance functorLast :: Functor Last where
4744
map f (Last x) = Last (f <$> x)
4845

0 commit comments

Comments
 (0)