You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
397 B
397 B
Chapter Excercises
fill in the types
pure :: a -> [a]
,(<*>) :: [(a -> b)] -> [a] -> [b]
pure :: a -> IO a
,(<*>) :: IO (a -> b) -> IO a -> IO b
pure :: a -> (b,a)
,(<*>) :: (c, (a -> b)) -> (c, a) -> (c, b)
pure :: a -> (e -> a)
,(<*>) :: (e -> (a -> b))) -> (e -> a) -> (e -> b)
Write instances
see src/instances.hs
Combinations
see src/combinations.hs