I just started learning Haskell using "Learn you a Haskell for Great Good." I am currently reading the chapter "Types and Typeclasses", so my knowledge is pretty ... do not exist. I am using Sublime Text 2 with the SublimeHaskell package, which builds / validates a file each time it is saved.
Problem: I'm trying to make a function type declaration like this:
funcName :: [Char] -> [Char]
I get this warning:
Warning: use String Found: [Char] → [Char] Why not: String → String
FAILED assembly
Can you explain to me why it is a bad idea to use a Char array instead of a String or give me a link to explain the possible consequences, etc. I googled and found nothing.
PS I am a C # developer, I understand the difference between a Char array and strings in c-like languages.
source share