HMock-0.1.0.0: A flexible mock framework for testing effectful code.
Safe HaskellNone
LanguageHaskell2010

Test.HMock.Internal.TH.Util

Synopsis

Documentation

removeModNames :: Data a => a -> a Source #

localizeMember :: Type -> Name -> Type -> Q Type Source #

Remove instance context from a method.

Some GHC versions report class members including the instance context (for example, show :: Show a => a -> String, instead of show :: a -> String). This looks for the instance context, and substitutes if needed to eliminate it.