File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
"build" : " pulp build -- --censor-lib --strict"
6
6
},
7
7
"devDependencies" : {
8
- "pulp" : " ^10 .0.4 " ,
9
- "purescript-psa" : " ^0.5.0-rc. 1" ,
8
+ "pulp" : " ^12 .0.1 " ,
9
+ "purescript-psa" : " ^0.5.1" ,
10
10
"rimraf" : " ^2.6.1"
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ module Data.Const where
2
2
3
3
import Prelude
4
4
5
+ import Data.Eq (class Eq1 )
5
6
import Data.Foldable (class Foldable )
6
7
import Data.Functor.Contravariant (class Contravariant )
7
8
import Data.Functor.Invariant (class Invariant , imapF )
@@ -22,6 +23,9 @@ derive instance newtypeConst :: Newtype (Const a b) _
22
23
23
24
derive newtype instance eqConst :: Eq a => Eq (Const a b )
24
25
26
+ instance eq1Const :: Eq a => Eq1 (Const a ) where
27
+ eq1 = eq
28
+
25
29
derive newtype instance ordConst :: Ord a => Ord (Const a b )
26
30
27
31
derive newtype instance boundedConst :: Bounded a => Bounded (Const a b )
You can’t perform that action at this time.
0 commit comments