File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,12 @@ import Control.Comonad (class Comonad)
77import Control.Extend (class Extend )
88import Control.Lazy (class Lazy )
99
10+ import Data.Eq (class Eq1 )
1011import Data.Foldable (class Foldable )
1112import Data.Functor.Invariant (class Invariant , imapF )
1213import Data.Monoid (class Monoid )
1314import Data.Newtype (class Newtype )
15+ import Data.Ord (class Ord1 )
1416import Data.Traversable (class Traversable )
1517
1618newtype Identity a = Identity a
@@ -46,6 +48,12 @@ derive newtype instance lazyIdentity :: Lazy a => Lazy (Identity a)
4648instance showIdentity :: Show a => Show (Identity a ) where
4749 show (Identity x) = " (Identity " <> show x <> " )"
4850
51+ instance eq1Identity :: Eq1 Identity where
52+ eq1 = eq
53+
54+ instance ord1Identity :: Ord1 Identity where
55+ compare1 = compare
56+
4957instance functorIdentity :: Functor Identity where
5058 map f (Identity x) = Identity (f x)
5159
You can’t perform that action at this time.
0 commit comments