| Copyright | (c) 2008--2010 Universiteit Utrecht |
|---|---|
| License | BSD3 |
| Maintainer | generics@haskell.org |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Generics.MultiRec.Constructor
Description
This module contains a class for datatypes that represent data constructors.
- class Constructor c where
- data Fixity
- data Associativity
Documentation
class Constructor c where Source #
Class for datatypes that represent data constructors.
For non-symbolic constructors, only conName has to be defined.
The weird argument is supposed to be instantiated with C from
base, hence the complex kind.
Minimal complete definition
Datatype to represent the fixity of a constructor. An infix declaration
directly corresponds to an application of Infix.
Constructors
| Prefix | |
| Infix Associativity Int |