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
8 changes: 4 additions & 4 deletions src/Data/List/Lazy/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ instance extendList :: Extend List where
Nil -> nil
Cons a as ->
f l : (foldr go { val: nil, acc: nil } as).val
where
go a { val, acc } =
let acc' = a : acc
in { val: f acc' : val, acc: acc' }
where
go a { val, acc } =
let acc' = a : acc
in { val: f acc' : val, acc: acc' }

newtype NonEmptyList a = NonEmptyList (Lazy (NonEmpty List a))

Expand Down
2 changes: 1 addition & 1 deletion test/Test/Data/List/NonEmpty.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Data.Monoid.Additive (Additive(..))
import Data.NonEmpty ((:|))
import Data.TraversableWithIndex (traverseWithIndex)
import Data.Tuple (Tuple(..))
import Data.Unfoldable (replicate, replicate1, unfoldr, unfoldr1)
import Data.Unfoldable (replicate1, unfoldr1)
import Effect (Effect)
import Effect.Console (log)
import Test.Assert (assert)
Expand Down