i defined the function NewLine
NewLine :: String -> String
NewLine (x:xs)=if (x=='\n') then xs else NewLine xs
gives me invalid type signature error...and i don't see why?
thanks...
i defined the function NewLine
NewLine :: String -> String
NewLine (x:xs)=if (x=='\n') then xs else NewLine xs
gives me invalid type signature error...and i don't see why?
thanks...
Functions can't begin with uppercase letters in Haskell. Uppercase letters denote a data constructor.