template-haskell-natural-1.0.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Natural.Syntax.Instance

Description

Builder for instance declaration

Synopsis

Builder

newInstance :: Name -> InstanceBuilder () -> Q InstanceD Source #

Builds a new instance for the typeclass. The argument is the Name of that typeclass

Functions

setOverlap :: Overlap -> InstanceBuilder () Source #

Set an Overlap pragma to the instance

addInstanceArg :: GenType t => t -> InstanceBuilder () Source #

Add an type argument to the instance

Re-export

newTypeVar :: forall {k} st (step :: k). String -> Builder st step step TypeVarName Source #

Builds a new type variable