
10 Nov
2014
10 Nov
'14
4:47 p.m.
It's an indentation issue. Make sure that there are no spaces before the
bit about 'last5 = foldr acc' etc.
On Mon, Nov 10, 2014 at 12:48 PM, Roelof Wobben
Roelof Wobben schreef op 10-11-2014 20:59:
last5 :: [a] -> Maybe a last5 = foldr acc Nothing where acc x Nothing = Just x acc _ j = j
When I enter this in GHCI I see this error :
Illegal type signature: ‘[a] -> Maybe a last5’
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners