Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Option a = Option {}
- desugarOption :: Type a => Option (Data a) -> Data (Bool, a)
- sugarOption :: Type a => Data (Bool, a) -> Option (Data a)
- some :: a -> Option a
- none :: Syntax a => Option a
- option :: Syntax b => b -> (a -> b) -> Option a -> b
- oplus :: Syntax a => Option a -> Option a -> Option a
- (?>) :: Data Bool -> a -> Option a
- (<?) :: Syntax a => a -> Option a -> a