String != [Char]

Johan Tibell johan.tibell at
Mon Mar 26 17:20:45 CEST 2012

On Mon, Mar 26, 2012 at 7:48 AM, Malcolm Wallace <malcolm.wallace at> wrote:
>> In the region of this side of the Atlantic Ocean where I teach, the
>> student population is very diverse
> Prelude> putStrLn (take 5 "Fröhßen")
> Fröhß

ghci> putStrLn "Fro\x0308hßen"
ghci> putStrLn (take 5 "Fro\x0308hßen")

Your example works because your input happens to be in a normal form.

-- Johan

More information about the Haskell-prime mailing list