roc-id-0.1.0.0: Implementation of the ROC National ID standard.

Safe HaskellSafe
LanguageHaskell2010

ROC.ID.Gender

Synopsis

Documentation

data Gender Source #

A person's gender, encodable within an ROC identification number.

Constructors

Male 
Female 
Instances
Bounded Gender Source # 
Instance details

Defined in ROC.ID.Gender

Enum Gender Source # 
Instance details

Defined in ROC.ID.Gender

Eq Gender Source # 
Instance details

Defined in ROC.ID.Gender

Methods

(==) :: Gender -> Gender -> Bool #

(/=) :: Gender -> Gender -> Bool #

Ord Gender Source # 
Instance details

Defined in ROC.ID.Gender

Show Gender Source # 
Instance details

Defined in ROC.ID.Gender

Generic Gender Source # 
Instance details

Defined in ROC.ID.Gender

Associated Types

type Rep Gender :: Type -> Type #

Methods

from :: Gender -> Rep Gender x #

to :: Rep Gender x -> Gender #

type Rep Gender Source # 
Instance details

Defined in ROC.ID.Gender

type Rep Gender = D1 (MetaData "Gender" "ROC.ID.Gender" "roc-id-0.1.0.0-EBt7nY1QCMq7lYvcqKJOx6" False) (C1 (MetaCons "Male" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Female" PrefixI False) (U1 :: Type -> Type))

printGender :: Language -> Gender -> Text Source #

Pretty-print the specified Gender.

randomGender :: MonadRandom m => m Gender Source #

Generate a random Gender.