haskoin-store-0.62.1: Storage and index for Bitcoin and Bitcoin Cash
Safe HaskellNone
LanguageHaskell2010

Haskoin.Store.Common

Synopsis

Documentation

data Limits Source #

Constructors

Limits 

Fields

Instances

Instances details
Eq Limits Source # 
Instance details

Defined in Haskoin.Store.Common

Methods

(==) :: Limits -> Limits -> Bool #

(/=) :: Limits -> Limits -> Bool #

Show Limits Source # 
Instance details

Defined in Haskoin.Store.Common

Default Limits Source # 
Instance details

Defined in Haskoin.Store.Common

Methods

def :: Limits #

data Start Source #

Constructors

AtTx 

Fields

AtBlock 

Instances

Instances details
Eq Start Source # 
Instance details

Defined in Haskoin.Store.Common

Methods

(==) :: Start -> Start -> Bool #

(/=) :: Start -> Start -> Bool #

Show Start Source # 
Instance details

Defined in Haskoin.Store.Common

Methods

showsPrec :: Int -> Start -> ShowS #

show :: Start -> String #

showList :: [Start] -> ShowS #

class Monad m => StoreReadBase m where Source #

Instances

Instances details
MonadIO m => StoreReadBase (DatabaseReaderT m) Source # 
Instance details

Defined in Haskoin.Store.Database.Reader

MonadIO m => StoreReadBase (WriterT m) Source # 
Instance details

Defined in Haskoin.Store.Database.Writer

(MonadUnliftIO m, MonadLoggerIO m, StoreReadBase m) => StoreReadBase (CacheT m) Source # 
Instance details

Defined in Haskoin.Store.Cache

class StoreReadBase m => StoreReadExtra m where Source #

Instances

Instances details
MonadUnliftIO m => StoreReadExtra (DatabaseReaderT m) Source # 
Instance details

Defined in Haskoin.Store.Database.Reader

(MonadUnliftIO m, MonadLoggerIO m, StoreReadExtra m) => StoreReadExtra (CacheT m) Source # 
Instance details

Defined in Haskoin.Store.Cache

class StoreWrite m where Source #

data PubExcept Source #

Instances

Instances details
Eq PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

Show PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

Generic PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

Associated Types

type Rep PubExcept :: Type -> Type #

Exception PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

Serialize PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

NFData PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

Methods

rnf :: PubExcept -> () #

type Rep PubExcept Source # 
Instance details

Defined in Haskoin.Store.Common

type Rep PubExcept = D1 ('MetaData "PubExcept" "Haskoin.Store.Common" "haskoin-store-0.62.1-inplace" 'False) ((C1 ('MetaCons "PubNoPeers" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PubReject" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RejectCode))) :+: (C1 ('MetaCons "PubTimeout" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PubPeerDisconnected" 'PrefixI 'False) (U1 :: Type -> Type)))

applyLimits :: Limits -> [a] -> [a] Source #

applyLimit :: Limit -> [a] -> [a] Source #

applyLimitC :: Monad m => Limit -> ConduitT i i m () Source #

sortTxs :: [Tx] -> [(Word32, Tx)] Source #

nub' :: (Eq a, Hashable a) => [a] -> [a] Source #

streamThings :: Monad m => (Limits -> m [a]) -> Maybe (a -> TxHash) -> Limits -> ConduitT () a m () Source #

joinDescStreams :: (Monad m, Ord a) => [ConduitT () a m ()] -> ConduitT () a m () Source #