ouroboros-consensus-0.3.1.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.FS.API

Description

Deprecated: Use System.FS.API from fs-api

Documentation

data Handle h #

Constructors

Handle 

Fields

Instances

Instances details
Eq h ⇒ Eq (Handle h) 
Instance details

Defined in System.FS.API.Types

Methods

(==)Handle h → Handle h → Bool Source #

(/=)Handle h → Handle h → Bool Source #

Show (Handle h) 
Instance details

Defined in System.FS.API.Types

Methods

showsPrecIntHandle h → ShowS Source #

showHandle h → String Source #

showList ∷ [Handle h] → ShowS Source #

Generic (Handle h) 
Instance details

Defined in System.FS.API.Types

Associated Types

type Rep (Handle h) ∷ TypeType Source #

Methods

fromHandle h → Rep (Handle h) x Source #

toRep (Handle h) x → Handle h Source #

NoThunks (Handle h) 
Instance details

Defined in System.FS.API.Types

Methods

noThunks ∷ Context → Handle h → IO (Maybe ThunkInfo) #

wNoThunks ∷ Context → Handle h → IO (Maybe ThunkInfo) #

showTypeOfProxy (Handle h) → String #

Condense (Handle h) 
Instance details

Defined in System.FS.API.Types

Methods

condenseHandle h → String

type Rep (Handle h) 
Instance details

Defined in System.FS.API.Types

type Rep (Handle h) = D1 ('MetaData "Handle" "System.FS.API.Types" "fs-api-0.1.0.0-58864323a5d3753cf4c9f98db8cb66d1e00cfb03d94ab9ebb31a0e9268bf84f1" 'False) (C1 ('MetaCons "Handle" 'PrefixI 'True) (S1 ('MetaSel ('Just "handleRaw") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 h) :*: S1 ('MetaSel ('Just "handlePath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FsPath)))

data HasFS (m ∷ TypeType) h #

Constructors

HasFS 

Instances

Instances details
NoThunks (HasFS m h) 
Instance details

Defined in System.FS.API

Methods

noThunks ∷ Context → HasFS m h → IO (Maybe ThunkInfo) #

wNoThunks ∷ Context → HasFS m h → IO (Maybe ThunkInfo) #

showTypeOfProxy (HasFS m h) → String #

data SomeHasFS (m ∷ TypeType) where #

Constructors

SomeHasFS ∷ ∀ h (m ∷ TypeType). Eq h ⇒ HasFS m h → SomeHasFS m 

Instances

Instances details
NoThunks (SomeHasFS m) 
Instance details

Defined in System.FS.API

Methods

noThunks ∷ Context → SomeHasFS m → IO (Maybe ThunkInfo) #

wNoThunks ∷ Context → SomeHasFS m → IO (Maybe ThunkInfo) #

showTypeOfProxy (SomeHasFS m) → String #

hClose' ∷ (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → m Bool #

hGetAllMonad m ⇒ HasFS m h → Handle h → m ByteString #

hGetAllAtMonad m ⇒ HasFS m h → Handle h → AbsOffset → m ByteString #

hPut ∷ (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → Builder → m Word64 #

hPutAll ∷ (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → ByteString → m Word64 #

hPutAllStrict ∷ (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → ByteString → m Word64 #

withFile ∷ (HasCallStack, MonadThrow m) ⇒ HasFS m h → FsPathOpenMode → (Handle h → m a) → m a #