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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Rewrite.Match.Kinds

Description

UPattern matching on statement-level AST fragments for refactorings.

Synopsis

Documentation

pattern KindConstraint :: Kind -> KindConstraint Source #

Kind constraint ( :: * -> * )

pattern StarKind :: Kind Source #

*, the kind of types

pattern UnboxKind :: Kind Source #

#, the kind of unboxed types

pattern FunKind :: Kind -> Kind -> Kind Source #

->, the kind of type constructor

pattern ParenKind :: Kind -> Kind Source #

A parenthesised kind

pattern VarKind :: Name -> Kind Source #

Kind variable (using PolyKinds extension)

pattern AppKind :: Kind -> Kind -> Kind Source #

Kind application ( k1 k2 )

pattern ListKind :: Kind -> Kind Source #

A list kind ( [k] )

pattern IntKind :: Integer -> Kind Source #

Numeric value promoted to the kind level.

pattern StringKind :: String -> Kind Source #

String value promoted to the kind level.

pattern ConKind :: Name -> Kind Source #

A data constructor value promoted to the kind level.

pattern ListKindPromoted :: KindList -> Kind Source #

A list of elements as a kind.

pattern TupleKind :: KindList -> Kind Source #

A tuple of elements as a kind.

pattern UnitKind :: Kind Source #

Kind of the unit value ().