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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Rewrite.Create.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 -> KindConstraint Source #

Kind constraint ( :: * -> * )

mkKindStar :: Kind Source #

*, the kind of types

mkKindUnbox :: Kind Source #

#, the kind of unboxed types

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

->, the kind of type constructor

mkKindParen :: Kind -> Kind Source #

A parenthesised kind

mkKindVar :: Name -> Kind Source #

Kind variable (using PolyKinds extension)

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

Kind application ( k1 k2 )

mkKindList :: Kind -> Kind Source #

A list kind ( [k] )

mkIntKind :: Integer -> Kind Source #

Numeric value promoted to the kind level.

mkStringKind :: String -> Kind Source #

String value promoted to the kind level.

mkConKind :: Name -> Kind Source #

A data constructor value promoted to the kind level.

mkListKind :: [Kind] -> Kind Source #

A list of elements as a kind.

mkTupleKind :: [Kind] -> Kind Source #

A tuple of elements as a kind.

mkUnitKind :: Kind Source #

Kind of the unit value ().