Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- makeSubStore :: Name -> String -> TypeQ -> ByteString -> Q [Dec]
- class RawKey k => IsKey k ns where
- class RawKey k where
- rawKey :: Iso' k ByteString
- data Var (a :: Type)
- makeVar :: IsKey k ns => Value k ns ~ Var a => k -> Store ns -> Value k ns
- data Array (a :: Type)
- makeArray :: IsKey k ns => Value k ns ~ Array a => k -> Store ns -> Value k ns
- data List (a :: Type)
- makeList :: IsKey key ns => Value key ns ~ List a => key -> Store ns -> Value key ns
- data Map (k :: Type) (v :: Type)
- makeMap :: IsKey key ns => Value key ns ~ Map k v => key -> Store ns -> Value key ns
Documentation
class RawKey k => IsKey k ns where Source #
Nothing
Keys
rawKey :: Iso' k ByteString Source #
Instances
RawKey Word64 Source # | |
Defined in Tendermint.SDK.BaseApp.Store.RawStore rawKey :: Iso' Word64 ByteString Source # | |
RawKey () Source # | |
Defined in Tendermint.SDK.BaseApp.Store.RawStore rawKey :: Iso' () ByteString Source # | |
RawKey Text Source # | |
Defined in Tendermint.SDK.BaseApp.Store.RawStore rawKey :: Iso' Text ByteString Source # | |
RawKey Address Source # | |
Defined in Tendermint.SDK.BaseApp.Store.RawStore rawKey :: Iso' Address ByteString Source # | |
RawKey PubKey_ Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types rawKey :: Iso' PubKey_ ByteString Source # |
Instances
IsKey () (Var a :: Type) Source # | |
(HasCodec a, Member (Tagged 'QueryAndMempool (ReadStore :: (Type -> Type) -> Type -> Type)) r) => HasQueryRouter (StoreLeaf (Var a) :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Store routeQ :: Proxy (StoreLeaf (Var a)) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (StoreLeaf (Var a)) (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy (StoreLeaf (Var a)) -> Proxy r -> (forall a0. Sem s a0 -> Sem s' a0) -> RouteQ (StoreLeaf (Var a)) s -> RouteQ (StoreLeaf (Var a)) s' Source # | |
type Value () (Var a :: Type) Source # | |
Defined in Tendermint.SDK.BaseApp.Store.Var | |
type RouteQ (StoreLeaf (Var a) :: Type) r Source # | |
data Array (a :: Type) Source #
A 'Array a' is an appendable list whose elements can be accessed
| by their index. You can also delete from the list, in which case accessing
| that index will result in a Nothing
.
Instances
(HasCodec a, Member (Tagged 'QueryAndMempool (ReadStore :: (Type -> Type) -> Type -> Type)) r) => HasQueryRouter (StoreLeaf (Array a) :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Store routeQ :: Proxy (StoreLeaf (Array a)) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (StoreLeaf (Array a)) (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy (StoreLeaf (Array a)) -> Proxy r -> (forall a0. Sem s a0 -> Sem s' a0) -> RouteQ (StoreLeaf (Array a)) s -> RouteQ (StoreLeaf (Array a)) s' Source # | |
type RouteQ (StoreLeaf (Array a) :: Type) r Source # | |
makeArray :: IsKey k ns => Value k ns ~ Array a => k -> Store ns -> Value k ns Source #
Smart constuctor to make sure we're making a Array
from
| the appropriate key type.
data Map (k :: Type) (v :: Type) Source #
Instances
RawKey k => IsKey k (Map k v :: Type) Source # | |
(QueryData k, HasCodec v, Member (Tagged 'QueryAndMempool (ReadStore :: (Type -> Type) -> Type -> Type)) r) => HasQueryRouter (StoreLeaf (Map k v) :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Store routeQ :: Proxy (StoreLeaf (Map k v)) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (StoreLeaf (Map k v)) (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy (StoreLeaf (Map k v)) -> Proxy r -> (forall a. Sem s a -> Sem s' a) -> RouteQ (StoreLeaf (Map k v)) s -> RouteQ (StoreLeaf (Map k v)) s' Source # | |
type Value k (Map k v :: Type) Source # | |
Defined in Tendermint.SDK.BaseApp.Store.Map | |
type RouteQ (StoreLeaf (Map k v) :: Type) r Source # | |