On Wed, 3 Apr 2013, Angus Comber wrote:
I am reading Learn you a Haskell for great good and on page 40 - as-patterns.
This question is certainly better for the beginners list:
http://www.haskell.org/mailman/listinfo/beginners
In your case
x :: Char
xs :: [Char]
[x] :: Char
That is, the brackets create a list from the single character x. This way
it provides the list type as required by (++).
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell