Safe Haskell | None |
---|---|
Language | Haskell2010 |
Control.Get
Documentation
Constructors
And x y |
Constructors
Top |
class TryGet as from self ok | as from self -> ok where Source #
Minimal complete definition
Methods
tryGetSing :: Proxy self -> Proxy from -> Proxy as -> Sing ok Source #
tryGetVal :: self -> from -> Proxy as -> If ok as () Source #
tryGet :: self -> from -> Proxy as -> (If ok as (), Sing ok) Source #
Instances
(~) Bool ok True => TryGet a a self ok Source # | |
TryGet as Bottom self True Source # | |
(~) Bool ok False => TryGet as Top self ok Source # | |
TryGet Top from self True Source # | |
TryGet as from from ok => TryGet as (Protected from) self ok Source # | |
(TryGet as a self aOK, TryGetOrR as b self aOK orOK) => TryGet as (Or a b) self orOK Source # | |
(TryGet as a self aOK, TryGetAndR as b self aOK andOK) => TryGet as (And a b) self andOK Source # | |
(TryGet a from self aOK, TryGetOrL a b from self aOK orOK) => TryGet (Or a b) from self orOK Source # | |
(TryGet a from self aOK, TryGetAndL a b from self aOK andOK) => TryGet (And a b) from self andOK Source # | |
class TryGetAndL a b from self (aOK :: Bool) (andOK :: Bool) | b from self aOK -> andOK where Source #
Minimal complete definition
Methods
tryGetAndLVal :: self -> from -> (If aOK a (), Sing aOK) -> Proxy (And a b) -> If andOK (And a b) () Source #
tryGetAndLSing :: Proxy self -> Proxy from -> Sing aOK -> Proxy (And a b) -> Sing andOK Source #
Instances
TryGet b from self andOK => TryGetAndL a b from self True andOK Source # | |
TryGetAndL a b from self False False Source # | |
class TryGetAndR as b self (aOK :: Bool) (andOK :: Bool) | as b self aOK -> andOK where Source #
Minimal complete definition
Methods
tryGetAndRVal :: self -> (If aOK as (), Sing aOK) -> b -> Proxy as -> If andOK as () Source #
tryGetAndRSing :: Proxy self -> Sing aOK -> Proxy b -> Proxy as -> Sing andOK Source #
Instances
TryGet as b self andOK => TryGetAndR as b self False andOK Source # | |
TryGetAndR as b self True True Source # | |
class TryGetOrL a b from self (aOK :: Bool) (orOK :: Bool) | b from self aOK -> orOK where Source #
Minimal complete definition
class TryGetOrR as b self (aOK :: Bool) orOK | as b self aOK -> orOK where Source #
Minimal complete definition
Constructors
Protected | |
Fields
|