ganeti

Safe HaskellNone

Ganeti.THH.Compat

Description

Shim library for supporting various Template Haskell versions

Synopsis

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.