haskell"无效类型签名错误"

Jay*_*Jay 6 haskell

我定义了这个功能 NewLine

NewLine :: String -> String
NewLine (x:xs)=if (x=='\n') then xs else NewLine xs
Run Code Online (Sandbox Code Playgroud)

它给了我一个无效的类型签名错误,但我不明白为什么.

mip*_*adi 26

函数不能以Haskell中的大写字母开头.大写字母表示数据构造函数.