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
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"package.json"
],
"dependencies": {
"purescript-monoid": "^1.0.0-rc.1"
"purescript-monoid": "^1.0.0-rc.2"
}
}
13 changes: 2 additions & 11 deletions src/Data/Maybe.purs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ module Data.Maybe where
import Control.Alt (class Alt)
import Control.Alternative (class Alternative)
import Control.Applicative (class Applicative)
import Control.Apply (class Apply, (<*>))
import Control.Apply (class Apply)
import Control.Bind (class Bind)
import Control.Extend (class Extend)
import Control.Monad (class Monad)
import Control.MonadZero (class MonadZero)
import Control.Plus (class Plus)

import Data.BooleanAlgebra (class BooleanAlgebra, conj, disj, not)
import Data.Bounded (class Bounded, top)
import Data.BoundedOrd (class BoundedOrd)
import Data.Eq (class Eq, (==))
import Data.Function (const, id)
import Data.Functor (class Functor, map, (<$>))
import Data.Functor (class Functor, (<$>))
import Data.Functor.Invariant (class Invariant, imapF)
import Data.Monoid (class Monoid)
import Data.Ord (class Ord, compare)
Expand Down Expand Up @@ -215,13 +213,6 @@ instance boundedMaybe :: Bounded a => Bounded (Maybe a) where
top = Just top
bottom = Nothing

instance boundedOrdMaybe :: BoundedOrd a => BoundedOrd (Maybe a)

instance booleanAlgebraMaybe :: BooleanAlgebra a => BooleanAlgebra (Maybe a) where
conj x y = conj <$> x <*> y
disj x y = disj <$> x <*> y
not = map not

-- | The `Show` instance allows `Maybe` values to be rendered as a string with
-- | `show` whenever there is an `Show` instance for the type the `Maybe`
-- | contains.
Expand Down
3 changes: 0 additions & 3 deletions src/Data/Maybe/First.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Control.Extend (class Extend, extend)
import Control.Monad (class Monad)

import Data.Bounded (class Bounded, top, bottom)
import Data.BoundedOrd (class BoundedOrd)
import Data.Eq (class Eq, (==))
import Data.Function ((<<<))
import Data.Functor (class Functor, (<$>))
Expand Down Expand Up @@ -41,8 +40,6 @@ instance boundedFirst :: (Bounded a) => Bounded (First a) where
top = First top
bottom = First bottom

instance boundedOrdFirst :: BoundedOrd a => BoundedOrd (First a) where

instance functorFirst :: Functor First where
map f (First x) = First (f <$> x)

Expand Down
3 changes: 0 additions & 3 deletions src/Data/Maybe/Last.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Control.Extend (class Extend, extend)
import Control.Monad (class Monad)

import Data.Bounded (class Bounded, top, bottom)
import Data.BoundedOrd (class BoundedOrd)
import Data.Eq (class Eq, (==))
import Data.Function ((<<<))
import Data.Functor (class Functor, (<$>))
Expand Down Expand Up @@ -41,8 +40,6 @@ instance boundedLast :: Bounded a => Bounded (Last a) where
top = Last top
bottom = Last bottom

instance boundedOrdLast :: BoundedOrd a => BoundedOrd (Last a) where

instance functorLast :: Functor Last where
map f (Last x) = Last (f <$> x)

Expand Down