request for reviews for my first patch -- ticket 7401

Ömer Sinan Ağacan omeragacan at
Fri Aug 9 20:53:08 CEST 2013

> It is almost certainly the case that the implementation of these
> functions should not be the constant return True function.

Yeah, I just checked that and looks like GHC generates `error $ Void ==`

    ==================== Derived instances ====================
    Derived instances:
      instance GHC.Classes.Eq Main.D where
        GHC.Classes.== = GHC.Err.error "Void =="
        GHC.Classes./= a_aok b_aol
          = GHC.Classes.not ((GHC.Classes.==) a_aok b_aol)

But I can't find code generation part of standalone deriving, any
ideas on where is this generation part?

Ömer Sinan Ağacan

More information about the ghc-devs mailing list