Skip to content
Closed
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
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
],
"dependencies": {
"purescript-foldable-traversable": "^0.4.0",
"purescript-generics": "^0.4.0",
"purescript-lazy": "^0.4.0",
"purescript-unfoldable": "^0.4.0"
},
Expand Down
3 changes: 3 additions & 0 deletions src/Data/List.purs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ module Data.List

import Prelude

import Data.Generic
import Data.Maybe
import Data.Tuple (Tuple(..))
import Data.Monoid
Expand Down Expand Up @@ -680,6 +681,8 @@ foldM f a (Cons b bs) = f a b >>= \a' -> foldM f a' bs
-- Instances -------------------------------------------------------------------
--------------------------------------------------------------------------------

derive instance genericList :: (Generic a) => Generic (List a)

instance showList :: (Show a) => Show (List a) where
show Nil = "Nil"
show (Cons x xs) = "Cons (" ++ show x ++ ") (" ++ show xs ++ ")"
Expand Down