ghc stackfaults

John Meacham john at repetae.net
Sun May 20 22:28:32 EDT 2007


On Sun, May 20, 2007 at 04:23:58PM +0200, Arie Peterson wrote:
> John Meacham wrote:
> 
> | ghc 6.6 and 6.6.1 both go into infinite loops and eventually die with a
> | stackfault when trying to compile the attached file with optimizations
> | turned on.
> |
> | [...]
> |
> | > -- A term, can have values
> | > newtype T v = V (T v)
> | >     deriving(Eq,Show,Ord)
> 
> This seems strange. Shouldn't it be 'newtype T v = T (V v)'?
> 
> I can imagine ghc running in circles trying to derive instances for T.

Ah, yes. that was a typo and removing it fixes the problem. Cool.
Though, still a minor bug in ghc I guess.

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈


More information about the Glasgow-haskell-users mailing list