> 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
http://osa1.net

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to