Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions for inferring (and simplifying) the context for derived instances.
Documentation
inferConstraints :: DerivSpecMechanism -> DerivM ([ThetaOrigin], [TyVar], [TcType]) Source #
simplifyInstanceContexts :: [DerivSpec [ThetaOrigin]] -> TcM [DerivSpec ThetaType] Source #