language: Haskell (ghc-6.8.2)
date: 116 days 18 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
head' :: [a] -> a
head' (x:_) = x -- Pattern match(es) are non-exhaustive            In an equation for `head'': Patterns not matched: []
 
 
length2' :: (Num b) => [a] -> b
length2' [] = 0 --Pattern match(es) are non-exhaustive             In an equation for `length2'': Patterns not matched: _ : (_ : _)
length2' [x] = 1 + (length2' (tail [x]))
 
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:1:0: The function `main' is not defined in module `Main'