From: Simon Marlow Date: Mon, 1 Mar 2010 09:55:25 +0000 (+0000) Subject: expand comments for #2578 fix X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=a251cba370c9bfb291159c4deea20226a87eeac3 expand comments for #2578 fix --- diff --git a/compiler/iface/BuildTyCl.lhs b/compiler/iface/BuildTyCl.lhs index 54adfdf..de1c191 100644 --- a/compiler/iface/BuildTyCl.lhs +++ b/compiler/iface/BuildTyCl.lhs @@ -121,7 +121,12 @@ mkDataTyConRhs cons = DataTyCon { data_cons = cons, is_enum = -- We define datatypes with no constructors to not be - -- enumerations; this fixes trac #2578 + -- enumerations; this fixes trac #2578, Otherwise we + -- end up generating an empty table for + -- __closure_tbl + -- which is used by tagToEnum# to map Int# to constructors + -- in an enumeration. The empty table apparently upset + -- the linker. not (null cons) && all isNullarySrcDataCon cons }