haskell-tools-rewrite-0.6.0.0: Facilities for generating new parts of the Haskell-Tools AST

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.Gen.Kinds

Description

Generation of statement-level AST fragments for refactorings. The bindings defined here are the AST constructor names with an "mk" prefix.

Synopsis

Documentation

mkKindConstraint :: Kind dom -> KindConstraint dom Source #

Kind constraint ( :: * -> * )

mkKindStar :: Kind dom Source #

*, the kind of types

mkKindUnbox :: Kind dom Source #

#, the kind of unboxed types

mkKindFun :: Kind dom -> Kind dom -> Kind dom Source #

->, the kind of type constructor

mkKindParen :: Kind dom -> Kind dom Source #

A parenthesised kind

mkKindVar :: Name dom -> Kind dom Source #

Kind variable (using PolyKinds extension)

mkKindApp :: Kind dom -> Kind dom -> Kind dom Source #

Kind application ( k1 k2 )

mkKindList :: Kind dom -> Kind dom Source #

A list kind ( [k] )

mkIntKind :: Integer -> Kind dom Source #

Numeric value promoted to the kind level.

mkStringKind :: String -> Kind dom Source #

String value promoted to the kind level.

mkConKind :: Name dom -> Kind dom Source #

A data constructor value promoted to the kind level.

mkListKind :: [Kind dom] -> Kind dom Source #

A list of elements as a kind.

mkTupleKind :: [Kind dom] -> Kind dom Source #

A tuple of elements as a kind.

mkUnitKind :: Kind dom Source #

Kind of the unit value ().