Copyright | (c) Alexandre Joannou 2019 |
---|---|
License | MIT |
Maintainer | alexandre.joannou@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Option type
Option
type to wrap a value. An 'Option t' is represented as a pair of a
'Bit 1' indicating whether the value held is valid, and a value of type t
.
Instances
Functor Option # | |
Generic (Option t) # | |
Cmp t => Cmp (Option t) # | |
Defined in Blarney.Option | |
Bits t => Bits (Option t) # | |
FShow t => FShow (Option t) # | |
Interface t => Interface (Option t) # | |
type Rep (Option t) # | |
Defined in Blarney.Option type Rep (Option t) = D1 ('MetaData "Option" "Blarney.Option" "blarney-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Option" 'PrefixI 'True) (S1 ('MetaSel ('Just "valid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Bit 1)) :*: S1 ('MetaSel ('Just "val") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 t))) | |
type SizeOf (Option t) # | |