Copyright | (c) 2008--2010 Universiteit Utrecht |
---|---|
License | BSD3 |
Maintainer | generics@haskell.org |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module contains a class for datatypes that represent data constructors.
Synopsis
- 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.
Datatype to represent the fixity of a constructor. An infix declaration
directly corresponds to an application of Infix
.
data Associativity Source #
Instances
Eq Associativity Source # | |
Defined in Generics.MultiRec.Constructor (==) :: Associativity -> Associativity -> Bool # (/=) :: Associativity -> Associativity -> Bool # | |
Ord Associativity Source # | |
Defined in Generics.MultiRec.Constructor compare :: Associativity -> Associativity -> Ordering # (<) :: Associativity -> Associativity -> Bool # (<=) :: Associativity -> Associativity -> Bool # (>) :: Associativity -> Associativity -> Bool # (>=) :: Associativity -> Associativity -> Bool # max :: Associativity -> Associativity -> Associativity # min :: Associativity -> Associativity -> Associativity # | |
Read Associativity Source # | |
Defined in Generics.MultiRec.Constructor readsPrec :: Int -> ReadS Associativity # readList :: ReadS [Associativity] # | |
Show Associativity Source # | |
Defined in Generics.MultiRec.Constructor showsPrec :: Int -> Associativity -> ShowS # show :: Associativity -> String # showList :: [Associativity] -> ShowS # |