ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

PatSyn

Contents

Synopsis

Main data types

mkPatSynSource

Arguments

:: Name 
-> Bool

Is the pattern synonym declared infix?

-> [Var]

Original arguments

-> [TyVar]

Universially-quantified type variables

-> [TyVar]

Existentially-quantified type variables

-> ThetaType

Wanted dicts

-> ThetaType

Given dicts

-> Type

Original result type

-> Id

Name of matcher

-> Maybe Id

Name of wrapper

-> PatSyn 

Build a new pattern synonym

Type deconstruction

patSynId :: PatSyn -> IdSource

The Name of the PatSyn, giving it a unique, rooted identification

patSynArity :: PatSyn -> AritySource

Arity of the pattern synonym

patSynIsInfix :: PatSyn -> BoolSource

Should the PatSyn be presented infix?