I need to import Data.Char into my .hs file, in order to run the script in GHCi. When I just add "import Data.Char" the console seems to complain and gives me parse error. How do I do that properly? I know its probably very simple, but I could not find an answer myself.
What produces the error :
import Data.Char
hashString :: [Char] -> Int -> [Char]
hashString [] a = []
hashString (x:xs) a = (intToDigit((digitToInt x) * a)):hashToString( xs (a - 1) )