tags:

views:

70

answers:

1

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...

+9  A: 

Functions can't begin with uppercase letters in Haskell. Uppercase letters denote a data constructor.

mipadi
thanks.........!
Jay