[Haskell-beginners] Simple function gives UTF-8 decoding error.
vilpesh at gmail.com
Sun May 8 15:07:20 UTC 2016
Haskell version installed on my computer with OS Windows 7, 64 bit.
GHCi, version 7.8.3
My haskell script is in a file named baby.hs with following functions,
doubleMe x = x + x
doubleUs x y = x*2 + y*2
removeNonUpperCase :: [Char] -> [Char]
removeNonUpperCase st = [c | c <- st, c `élem` ['A'..'Z']]
I get following error:-
[1 of 1] Compiling Main ( baby.hs, interpreted )
baby.hs:6:42: lexical error (UTF-8 decoding error)
Failed, modules loaded: none.
I am not able to advance any further, please suggest.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners