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

Safe HaskellNone
LanguageHaskell2010

ROC.ID.Serial

Synopsis

Documentation

newtype Serial Source #

A 7-digit serial number, as found within an ROC identification number.

A serial number is unique for a gender and location.

To generate a random Serial number, use the randomSerial function.

Constructors

Serial (Vector 7 Digit) 
Instances
Eq Serial Source # 
Instance details

Defined in ROC.ID.Serial

Methods

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

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

Ord Serial Source # 
Instance details

Defined in ROC.ID.Serial

Show Serial Source # 
Instance details

Defined in ROC.ID.Serial

Generic Serial Source # 
Instance details

Defined in ROC.ID.Serial

Associated Types

type Rep Serial :: Type -> Type #

Methods

from :: Serial -> Rep Serial x #

to :: Rep Serial x -> Serial #

type Rep Serial Source # 
Instance details

Defined in ROC.ID.Serial

type Rep Serial = D1 (MetaData "Serial" "ROC.ID.Serial" "roc-id-0.1.0.0-EBt7nY1QCMq7lYvcqKJOx6" True) (C1 (MetaCons "Serial" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector 7 Digit))))

randomSerial :: MonadRandom m => m Serial Source #

Generate a random Serial number.