I defined the function NewLine
NewLine :: String -> String
NewLine (x:xs)=if (x=='\n') then xs else NewLine xs
It gives me an invalid type signature error, but I don't see why.
Functions can't begin with uppercase letters in Haskell. Uppercase letters denote a data constructor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With