How to work around GHC bug
Volker Wysk
pf3 at volker-wysk.de
Wed Mar 14 15:17:07 CET 2012
Am Mittwoch 14 März 2012, 15:08:38 schrieben Sie:
> On 14 March 2012 13:51, Volker Wysk <pf3 at volker-wysk.de> wrote:
> > import System
> >
> > main = do
> >
> > [a] <- getArgs
> >
> > putStrLn (show a)
>
> a here is already of type String. If you don't call show on it, it'll do
> the expected thing.
>
> Try:
> main = do
> [a] <- getArgs
> putStrLn a
That's not true. The result is:
./tmp $ ./arg ä
ä
Bye
Volker
More information about the Glasgow-haskell-users
mailing list