Magnus Carlsson wrote:
> Here are some questions for the Haskell-98 enthusiasts.
I'm not sure if I'm a Haskell-98 enthusiast, I still call myself
a Haskell enthusiast.
> 1. Why is the following declaration group illegal?
>
> f :: String
> f = g 1 ++ g True
>
> g :: Show a => a -> String
> g x = fst (show x, show f)
I don't see why it should be illegal, but then nor does Hugs 98.
It is happy with this definition and gives "1True" for f.
So if you found a subtle strange thing in Haskell 98, you also found a
bug in Hugs.
Christian Sievers