File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 21
21
],
22
22
"dependencies" : {
23
23
"purescript-lazy" : " ^3.0.0" ,
24
- "purescript-nonempty" : " ^4.0.0 " ,
24
+ "purescript-nonempty" : " matthewleon/purescript-nonempty#Foldable1 " ,
25
25
"purescript-tailrec" : " ^3.3.0" ,
26
26
"purescript-unfoldable" : " ^3.0.0" ,
27
27
"purescript-partial" : " ^1.0.0" ,
32
32
"purescript-assert" : " ^3.0.0" ,
33
33
"purescript-console" : " ^3.0.0" ,
34
34
"purescript-math" : " ^2.0.0"
35
+ },
36
+ "resolutions" : {
37
+ "purescript-nonempty" : " Foldable1"
35
38
}
36
39
}
Original file line number Diff line number Diff line change @@ -204,11 +204,7 @@ derive newtype instance foldableNonEmptyList :: Foldable NonEmptyList
204
204
205
205
derive newtype instance traversableNonEmptyList :: Traversable NonEmptyList
206
206
207
- instance foldable1NonEmptyList :: Foldable1 NonEmptyList where
208
- fold1 (NonEmptyList (a :| as)) =
209
- foldl append a as
210
- foldMap1 f (NonEmptyList (a :| as)) =
211
- foldl (\acc -> append acc <<< f) (f a) as
207
+ derive newtype instance foldable1NonEmptyList :: Foldable1 NonEmptyList
212
208
213
209
instance traversable1NonEmptyList :: Traversable1 NonEmptyList where
214
210
traverse1 f (NonEmptyList (a :| as)) =
You can’t perform that action at this time.
0 commit comments