doldol-0.4.1.0: Flag packer & handler for flaggable data

Safe HaskellNone
LanguageHaskell2010

Data.Flag.Phantom

Description

Phantom is for strict typing of Flag.

When you want to distinguish two Flag by its origination, use this module instead of Flag(Simple).

Synopsis

Documentation

newtype PhantomFlag t Source #

Constructors

PhFlag Flag 
Instances
Eq (PhantomFlag t) Source # 
Instance details

Defined in Data.Flag.Phantom

Ord (PhantomFlag t) Source # 
Instance details

Defined in Data.Flag.Phantom

Show (PhantomFlag t) Source # 
Instance details

Defined in Data.Flag.Phantom

readEnum :: Enum e => String -> [e] Source #

about :: (Flag -> Flag -> b) -> PhantomFlag t -> PhantomFlag t -> PhantomFlag t -> b Source #