generic-deriving-1.9.0: Generic programming library for generalised deriving.

Safe Haskell | None
Language | Haskell98

Generics.Deriving.Show

Contents

- Generic show class
- Default definition

Synopsis

- class GShow a where
  - gshowsPrec :: Int -> a -> ShowS
  - gshows :: a -> ShowS
  - gshow :: a -> String
- gshowsPrecdefault :: (Generic a, GShow' (Rep a)) => Int -> a -> ShowS

# Generic show class

class GShow a where Source

Minimal complete definition

Nothing

Methods

gshowsPrec :: Int -> a -> ShowS Source

gshows :: a -> ShowS Source

gshow :: a -> String Source

Instances

GShow Bool Source |
GShow Char Source |
GShow Double Source |
GShow Float Source |
GShow Int Source |
GShow Int8 Source |
GShow Int16 Source |
GShow Int32 Source |
GShow Int64 Source |
GShow Integer Source |
GShow Ordering Source |
GShow Word Source |
GShow Word8 Source |
GShow Word16 Source |
GShow Word32 Source |
GShow Word64 Source |
GShow String Source |
GShow () Source |
GShow Handle Source |
GShow Void Source |
GShow Natural Source |
GShow HandlePosn Source |
GShow IOMode Source |
GShow Fd Source |
GShow ExitCode Source |
GShow IOErrorType Source |
GShow BufferMode Source |
GShow SeekMode Source |
GShow WordPtr Source |
GShow IntPtr Source |
GShow CChar Source |
GShow CSChar Source |
GShow CUChar Source |
GShow CShort Source |
GShow CUShort Source |
GShow CInt Source |
GShow CUInt Source |
GShow CLong Source |
GShow CULong Source |
GShow CLLong Source |
GShow CULLong Source |
GShow CFloat Source |
GShow CDouble Source |
GShow CPtrdiff Source |
GShow CSize Source |
GShow CWchar Source |
GShow CSigAtomic Source |
GShow CClock Source |
GShow CTime Source |
GShow CUSeconds Source |
GShow CSUSeconds Source |
GShow CIntPtr Source |
GShow CUIntPtr Source |
GShow CIntMax Source |
GShow CUIntMax Source |
GShow IOError Source |
GShow All Source |
GShow Any Source |
GShow Arity Source |
GShow Fixity Source |
GShow Associativity Source |
GShow GeneralCategory Source |
GShow a => GShow [a] Source |
GShow (Ptr a) Source |
GShow (FunPtr a) Source |
GShow (U1 p) Source |
GShow p => GShow (Par1 p) Source |
GShow (ForeignPtr a) Source |
GShow a => GShow (Identity a) Source |
GShow a => GShow (ZipList a) Source |
GShow a => GShow (Dual a) Source |
GShow a => GShow (Sum a) Source |
GShow a => GShow (Product a) Source |
GShow a => GShow (First a) Source |
GShow a => GShow (Last a) Source |
GShow a => GShow (Maybe a) Source |
(GShow a, GShow b) => GShow (Either a b) Source |
GShow (f p) => GShow (Rec1 f p) Source |
(GShow a, GShow b) => GShow (a, b) Source |
GShow a => GShow (Const a b) Source |
GShow (Proxy * s) Source |
GShow c => GShow (K1 i c p) Source |
(GShow (f p), GShow (g p)) => GShow ((:+:) f g p) Source |
(GShow (f p), GShow (g p)) => GShow ((:*:) f g p) Source |
GShow (f (g p)) => GShow ((:.:) f g p) Source |
(GShow a, GShow b, GShow c) => GShow (a, b, c) Source |
GShow (f a) => GShow (Alt * f a) Source |
GShow (f p) => GShow (M1 i c f p) Source |
(GShow a, GShow b, GShow c, GShow d) => GShow (a, b, c, d) Source |
(GShow a, GShow b, GShow c, GShow d, GShow e) => GShow (a, b, c, d, e) Source |
(GShow a, GShow b, GShow c, GShow d, GShow e, GShow f) => GShow (a, b, c, d, e, f) Source |
(GShow a, GShow b, GShow c, GShow d, GShow e, GShow f, GShow g) => GShow (a, b, c, d, e, f, g) Source |

# Default definition

gshowsPrecdefault :: (Generic a, GShow' (Rep a)) => Int -> a -> ShowS Source