roc-id-0.2.0.0: Implementation of the ROC (Taiwan) National ID standard.
Safe HaskellSafe-Inferred
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

Instances details
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 #

Show Serial Source # 
Instance details

Defined in ROC.ID.Serial

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

type Rep Serial Source # 
Instance details

Defined in ROC.ID.Serial

type Rep Serial = D1 ('MetaData "Serial" "ROC.ID.Serial" "roc-id-0.2.0.0-9iaNsKOWrI31QYojWhIb3O" '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.