th-orphans-0.13.6: Orphan instances for TH datatypes

Copyright(c) Matt Morrow 2008
LicenseBSD3
MaintainerMichael Sloan <mgsloan at gmail>
Stabilityexperimental
Portabilityportable (template-haskell)
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Instances

Contents

Description

It provides the following instances:

More recent versions of template-haskell, particularly 2.10 (GHC 7.10), provide these instances. However, in order to support older versions you should import this module.

Note that the Ord instances are not guaranteed to produce consistent results across template-haskell / GHC versions, as they have different data types, with different constructor orders.

This module also implicitly re-exports the instances defined in Instances.TH.Lift. This is mostly to ensure that there aren't collisions of orphans between th-orphans and th-lift-instances.

Orphan instances

Lift Exp # 
Instance details

Methods

lift :: Exp -> Q Exp #

Lift Match # 
Instance details

Methods

lift :: Match -> Q Exp #

Lift Clause # 
Instance details

Methods

lift :: Clause -> Q Exp #

Lift Pat # 
Instance details

Methods

lift :: Pat -> Q Exp #

Lift Type # 
Instance details

Methods

lift :: Type -> Q Exp #

Lift Dec # 
Instance details

Methods

lift :: Dec -> Q Exp #

Lift FunDep # 
Instance details

Methods

lift :: FunDep -> Q Exp #

Lift InjectivityAnn # 
Instance details

Methods

lift :: InjectivityAnn -> Q Exp #

Lift Overlap # 
Instance details

Methods

lift :: Overlap -> Q Exp #

Lift Loc # 
Instance details

Methods

lift :: Loc -> Q Exp #

Lift Info # 
Instance details

Methods

lift :: Info -> Q Exp #

Lift Fixity # 
Instance details

Methods

lift :: Fixity -> Q Exp #

Lift FixityDirection # 
Instance details

Methods

lift :: FixityDirection -> Q Exp #

Lift Lit # 
Instance details

Methods

lift :: Lit -> Q Exp #

Lift Body # 
Instance details

Methods

lift :: Body -> Q Exp #

Lift Guard # 
Instance details

Methods

lift :: Guard -> Q Exp #

Lift Stmt # 
Instance details

Methods

lift :: Stmt -> Q Exp #

Lift Range # 
Instance details

Methods

lift :: Range -> Q Exp #

Lift DerivClause # 
Instance details

Methods

lift :: DerivClause -> Q Exp #

Lift DerivStrategy # 
Instance details

Methods

lift :: DerivStrategy -> Q Exp #

Lift TypeFamilyHead # 
Instance details

Methods

lift :: TypeFamilyHead -> Q Exp #

Lift TySynEqn # 
Instance details

Methods

lift :: TySynEqn -> Q Exp #

Lift Foreign # 
Instance details

Methods

lift :: Foreign -> Q Exp #

Lift Callconv # 
Instance details

Methods

lift :: Callconv -> Q Exp #

Lift Safety # 
Instance details

Methods

lift :: Safety -> Q Exp #

Lift Pragma # 
Instance details

Methods

lift :: Pragma -> Q Exp #

Lift Inline # 
Instance details

Methods

lift :: Inline -> Q Exp #

Lift RuleMatch # 
Instance details

Methods

lift :: RuleMatch -> Q Exp #

Lift Phases # 
Instance details

Methods

lift :: Phases -> Q Exp #

Lift RuleBndr # 
Instance details

Methods

lift :: RuleBndr -> Q Exp #

Lift AnnTarget # 
Instance details

Methods

lift :: AnnTarget -> Q Exp #

Lift SourceUnpackedness # 
Instance details

Lift SourceStrictness # 
Instance details

Methods

lift :: SourceStrictness -> Q Exp #

Lift Con # 
Instance details

Methods

lift :: Con -> Q Exp #

Lift Bang # 
Instance details

Methods

lift :: Bang -> Q Exp #

Lift PatSynDir # 
Instance details

Methods

lift :: PatSynDir -> Q Exp #

Lift PatSynArgs # 
Instance details

Methods

lift :: PatSynArgs -> Q Exp #

Lift TyVarBndr # 
Instance details

Methods

lift :: TyVarBndr -> Q Exp #

Lift FamilyResultSig # 
Instance details

Methods

lift :: FamilyResultSig -> Q Exp #

Lift TyLit # 
Instance details

Methods

lift :: TyLit -> Q Exp #

Lift Role # 
Instance details

Methods

lift :: Role -> Q Exp #

Quasi m => Quasi (ReaderT r m) # 
Instance details

Quasi m => Quasi (StateT s m) # 
Instance details

(Quasi m, Monoid w) => Quasi (WriterT w m) # 
Instance details

(Quasi m, Monoid w) => Quasi (RWST r w s m) # 
Instance details

Methods

qNewName :: String -> RWST r w s m Name #

qReport :: Bool -> String -> RWST r w s m () #

qRecover :: RWST r w s m a -> RWST r w s m a -> RWST r w s m a #

qLookupName :: Bool -> String -> RWST r w s m (Maybe Name) #

qReify :: Name -> RWST r w s m Info #

qReifyFixity :: Name -> RWST r w s m (Maybe Fixity) #

qReifyInstances :: Name -> [Type] -> RWST r w s m [Dec] #

qReifyRoles :: Name -> RWST r w s m [Role] #

qReifyAnnotations :: Data a => AnnLookup -> RWST r w s m [a] #

qReifyModule :: Module -> RWST r w s m ModuleInfo #

qReifyConStrictness :: Name -> RWST r w s m [DecidedStrictness] #

qLocation :: RWST r w s m Loc #

qRunIO :: IO a -> RWST r w s m a #

qAddDependentFile :: FilePath -> RWST r w s m () #

qAddTempFile :: String -> RWST r w s m FilePath #

qAddTopDecls :: [Dec] -> RWST r w s m () #

qAddForeignFilePath :: ForeignSrcLang -> String -> RWST r w s m () #

qAddModFinalizer :: Q () -> RWST r w s m () #

qAddCorePlugin :: String -> RWST r w s m () #

qGetQ :: Typeable a => RWST r w s m (Maybe a) #

qPutQ :: Typeable a => a -> RWST r w s m () #

qIsExtEnabled :: Extension -> RWST r w s m Bool #

qExtsEnabled :: RWST r w s m [Extension] #