haskoin-store-0.40.17: 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
(MonadUnliftIO m, MonadLoggerIO m, StoreReadBase m) => StoreReadBase (CacheT m) Source # 
Instance details

Defined in Haskoin.Store.Cache

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 (ReaderT WebConfig m) Source # 
Instance details

Defined in Haskoin.Store.Web

class StoreReadBase m => StoreReadExtra m where Source #

Instances

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

Defined in Haskoin.Store.Cache

MonadIO m => StoreReadExtra (DatabaseReaderT m) Source # 
Instance details

Defined in Haskoin.Store.Database.Reader

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

Defined in Haskoin.Store.Web

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.40.17-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 #

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

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