ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.THH.Compat

Description

Shim library for supporting various Template Haskell versions

Synopsis

Documentation

gntInstanceD :: Cxt -> Type -> [Dec] -> Dec #

InstanceD "constructor" function

Handle TH 2.11 and 2.12 changes in a transparent manner using the pre-2.11 API.

gntDataD :: Cxt -> Name -> [TyVarBndr ()] -> [Con] -> [Name] -> Dec #

DataD "constructor" function

Handle TH 2.11 and 2.12 changes in a transparent manner using the pre-2.11 API.

extractDataDConstructors :: Info -> Maybe [Con] #

Extract constructors from a DataD instance

Handle TH 2.11 changes by abstracting pattern matching against DataD.

myNotStrict :: Bang #

Strict has been replaced by Bang, so redefine NotStrict in terms of the latter.

nonUnaryTupE :: [Exp] -> Exp #

TupE changed from '[Exp] -> Exp' to '[Maybe Exp] -> Exp'. Provide the old signature for compatibility.

mkDoE :: [Stmt] -> Exp #

DoE is now qualified with an optional ModName

conP_ :: Name -> [Pat] -> Pat #