Language
Haskell
Compiler
ghc 8.2.1
Options
Warnings
$ ghc prog.hs -o prog.exe -Wall
Exit Code:
1
Author
anonymous
over 7 years ago
Haskell
ghc 8.2.1
Author
anonymous
over 7 years ago
$ ghc prog.hs -o prog.exe -Wall
[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:1:1: error:
• Couldn't match type ‘t -> Bool’ with ‘[t]’
Expected type: [t] -> [t]
Actual type: (t -> Bool) -> [t] -> [t]
• Relevant bindings include f :: [t] -> [t] (bound at prog.hs:1:1)
|
1 | f p as@(x:xs) =
| ^^^^^^^^^^^^^^^...