one-liner-0.5.1: Constraint-based generics

LicenseBSD-style (see the file LICENSE)
Maintainersjoerd@w3future.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Generics.OneLiner.Functions

Contents

Description

 

Synopsis

For all instances

eqADT :: (ADT t, Constraints t Eq) => t -> t -> Bool Source

compareADT :: (ADT t, Constraints t Ord) => t -> t -> Ordering Source

showsPrecADT :: forall t. (ADT t, Constraints t Show) => Int -> t -> ShowS Source

readPrecADT :: forall t. (ADT t, Constraints t Read) => ReadPrec t Source

For datatypes with one constructor

mappendADT :: (ADTRecord t, Constraints t Monoid) => t -> t -> t Source