Safe Haskell | None |
---|
Ganeti.THH.Compat
Description
Shim library for supporting various Template Haskell versions
Synopsis
- gntDataD :: Cxt -> Name -> [TyVarBndr] -> [Con] -> [Name] -> Dec
- gntInstanceD :: Cxt -> Type -> [Dec] -> Dec
- extractDataDConstructors :: Info -> Maybe [Con]
- myNotStrict :: Bang
Documentation
gntDataD :: Cxt -> Name -> [TyVarBndr] -> [Con] -> [Name] -> Dec Source #
DataD "constructor" function
Handle TH 2.11 and 2.12 changes in a transparent manner using the pre-2.11 API.
gntInstanceD :: Cxt -> Type -> [Dec] -> Dec Source #
InstanceD "constructor" function
Handle TH 2.11 and 2.12 changes in a transparent manner using the pre-2.11 API.
extractDataDConstructors :: Info -> Maybe [Con] Source #
Extract constructors from a DataD instance
Handle TH 2.11 changes by abstracting pattern matching against DataD.
myNotStrict :: Bang Source #
Strict has been replaced by Bang, so redefine NotStrict in terms of the latter.