Weird type synonym bug



About this list Date view Thread view Subject view Author view

Manuel M. T. Chakravarty (chak@cse.unsw.edu.au)
Wed, 07 Feb 2001 17:00:02 +1100


The appended set of three modules gives me enki chak 55 (~/haskell): nhc98 -c Main.hs Warning: when renaming newtype of imported newtype: Real type of imported newtype is not visible. I might get boxed/unboxed info wrong. ==================================== Error when renaming:: Newtype Main.T' is circular. with the current stable release of nhc 1.00, although it is legal H98 (ghc eats it without complaints). More specifically, I used enki chak 55 (.../nhc1/base): nhc98 --version /usr/bin/nhc98: v1.00 (date 2000-09-15) [ config: ix86-Linux/ghc by romildo@darling.home.br on 14 Nov 2000 ] Cheers, Manuel -=- module N (T2) where data T2 = T -=- module M (T) where import N (T2) newtype T = T T2 -=- module Main where import M (T) newtype T' = T' T foo (T' x) = x main = print "bla"


About this list Date view Thread view Subject view Author view