Commit a251cba3 authored by Simon Marlow's avatar Simon Marlow
Browse files

expand comments for #2578 fix

parent 789690fc
......@@ -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
-- <mod>_<type>_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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment