Treat () as an enumeration tycon
authorIan Lynagh <igloo@earth.li>
Tue, 24 Nov 2009 01:13:13 +0000 (01:13 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 24 Nov 2009 01:13:13 +0000 (01:13 +0000)
commitae6378d0e49a3ffb68c58fb71dfa01ae13bd680f
tree6854124c449dcaf9e6c845c461a387dfa992ab04
parent0dcea0d97a4bc0b1d5818faded64944fba5a29ec
Treat () as an enumeration tycon
This fixes deriving Ord (), which previously failed with
  ghc-stage1: panic! (the 'impossible' happened)
    (GHC version 6.13.20091123 for x86_64-unknown-linux):
          TcGenDeriv:mk_FunBind
compiler/types/TyCon.lhs