generic-data-functions-0.5.1: Familiar functions lifted to generic data types
Safe HaskellSafe-Inferred
LanguageGHC2021

Generic.Data.Function.Example

Documentation

data X Source #

Constructors

X1 
X2 

Instances

Instances details
Generic X Source # 
Instance details

Defined in Generic.Data.Function.Example

Associated Types

type Rep X :: Type -> Type #

Methods

from :: X -> Rep X x #

to :: Rep X x -> X #

type Rep X Source # 
Instance details

Defined in Generic.Data.Function.Example

type Rep X = D1 ('MetaData "X" "Generic.Data.Function.Example" "generic-data-functions-0.5.1-inplace" 'False) (C1 ('MetaCons "X1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "X2" 'PrefixI 'False) (U1 :: Type -> Type))

data Y Source #

Constructors

Y 

Instances

Instances details
Generic Y Source # 
Instance details

Defined in Generic.Data.Function.Example

Associated Types

type Rep Y :: Type -> Type #

Methods

from :: Y -> Rep Y x #

to :: Rep Y x -> Y #

type Rep Y Source # 
Instance details

Defined in Generic.Data.Function.Example

type Rep Y = D1 ('MetaData "Y" "Generic.Data.Function.Example" "generic-data-functions-0.5.1-inplace" 'False) (C1 ('MetaCons "Y" 'PrefixI 'False) (U1 :: Type -> Type))

newtype Showly Source #

Constructors

Showly 

Fields

showGeneric :: forall a. (Generic a, GFoldMapSum Showly (Rep a)) => a -> String Source #

showGeneric' :: forall a. (Generic a, GFoldMapNonSum Showly (Rep a)) => a -> String Source #