X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcoreSyn%2FMkExternalCore.lhs;h=b4970cca48ca91c6519acf4d1e3a6cf957e21007;hp=291b16e823eb0770bd3ac63fdf3374cd2ba40687;hb=4db2c92cedd11b90c6cec46c245b3b618f734d49;hpb=b764b3450fd52ead0ea7cb1cc1b609e423f9b3b1 diff --git a/compiler/coreSyn/MkExternalCore.lhs b/compiler/coreSyn/MkExternalCore.lhs index 291b16e..b4970cc 100644 --- a/compiler/coreSyn/MkExternalCore.lhs +++ b/compiler/coreSyn/MkExternalCore.lhs @@ -64,7 +64,8 @@ collect_tdefs tcon tdefs where tdef | isNewTyCon tcon = C.Newtype (make_con_qid (tyConName tcon)) (map make_tbind tyvars) repclause - | null (tyConDataCons tcon) = error "MkExternalCore died: can't handle datatype declarations with no data constructors" +-- 20060420 GHC handles empty data types just fine. ExtCore should too! jds +-- | null (tyConDataCons tcon) = error "MkExternalCore died: can't handle datatype declarations with no data constructors" | otherwise = C.Data (make_con_qid (tyConName tcon)) (map make_tbind tyvars) (map make_cdef (tyConDataCons tcon)) where repclause | isRecursiveTyCon tcon = Nothing