Modulehnix-store-remote-0.7.0.0Haskell2010
System.Nix.Store.Remote.Serializer
|
Contents
- NixSerializer
- Errors
- Runners
- Primitives
- UTCTime
- Combinators
- ProtoVersion
- StorePath
- Metadata
- OutputName
- Signatures
- Some HashAlgo
- Digest
- DSum HashAlgo Digest
- Derivation
- Derivation
- Build
- Logger
- Handshake
- Worker protocol
- Request
- Reply
- Realisation
- BuildResult
- GCResult
- GCResult
- Missing
- Maybe (Metadata StorePath)
Synopsis
- type NixSerializer
- value mapReaderS
- value mapErrorS
- data SError
- value runSerialT
- value runG
- value runP
- value int
- value bool
- value byteString
- value enum
- value text
- value maybeText
- value time
- value list
- value set
- value hashSet
- value mapS
- value vector
- value json
- value protoVersion
- value storePath
- value maybePath
- value storePathHashPart
- value storePathName
- value pathMetadata
- value outputName
- value signature
- value narSignature
- value someHashAlgo
- value digest
- value namedDigest
- value derivation
- value derivedPath
- value buildMode
- data LoggerSError
- value activityID
- value maybeActivity
- value activity
- value activityResult
- value field
- value trace
- value basicError
- value errorInfo
- value loggerOpCode
- value logger
- value verbosity
- data HandshakeSError
- value workerMagic
- value trustedFlag
- value storeText
- value workerOp
- data RequestSError
- value storeRequest
- data ReplySError
- value opSuccess
- value noop
- value derivationOutputTyped
- value realisation
- value realisationWithId
- value buildResult
- value gcResult
- value gcRoot
- value missing
- value maybePathMetadata
- Packagehnix-store-remote-0.7.0.0
- Exports65
- LanguageHaskell2010
- LicenceApache-2.0
- SourceSerializer.hs
NixSerializer
Errors
Constructors
SErrorSError_BadPaddingSError_ContentAddress StringSError_DerivedPath ParseOutputsErrorSError_DerivationOutput DerivationOutputErrorSError_Digest StringSError_EnumOutOfMinBound IntSError_EnumOutOfMaxBound IntSError_HashAlgo StringSError_IllegalBool Word64SError_InvalidNixBase32SError_JSONDecoding StringSError_NarHashMustBeSHA256SError_NotYetImplemented String (ForPV ProtoVersion)SError_Name InvalidNameErrorSError_Path InvalidPathErrorSError_Signature String
Instances5Eq, Ord, Show, Generic, Rep
Eq SErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerOrd SErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerShow SErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerGeneric SErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializertype Rep SError = D1 ('MetaDataDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializer"SError"
"System.Nix.Store.Remote.Serializer"
"hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz"
'False) ((((C1 ('MetaCons"SError"
'PrefixI 'False) U1 :+: C1 ('MetaCons"SError_BadPadding"
'PrefixI 'True) (S1 ('MetaSel ('Just"badPaddingStr"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just"badPaddingLen"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just"badPaddingPads"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Word8])))) :+: (C1 ('MetaCons"SError_ContentAddress"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons"SError_DerivedPath"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ParseOutputsError)))) :+: ((C1 ('MetaCons"SError_DerivationOutput"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DerivationOutputError)) :+: C1 ('MetaCons"SError_Digest"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) :+: (C1 ('MetaCons"SError_EnumOutOfMinBound"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons"SError_EnumOutOfMaxBound"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) :+: (((C1 ('MetaCons"SError_HashAlgo"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons"SError_IllegalBool"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) :+: (C1 ('MetaCons"SError_InvalidNixBase32"
'PrefixI 'False) U1 :+: C1 ('MetaCons"SError_JSONDecoding"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))) :+: ((C1 ('MetaCons"SError_NarHashMustBeSHA256"
'PrefixI 'False) U1 :+: C1 ('MetaCons"SError_NotYetImplemented"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ForPV ProtoVersion)))) :+: (C1 ('MetaCons"SError_Name"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InvalidNameError)) :+: (C1 ('MetaCons"SError_Path"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InvalidPathError)) :+: C1 ('MetaCons"SError_Signature"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))))))
Runners
Runner for SerialT
Primitives
UTCTime
Combinators
ProtoVersion
StorePath
Metadata
OutputName
Signatures
Some HashAlgo
Digest
DSum HashAlgo Digest
Derivation
Derivation
Build
Logger
Instances5Eq, Ord, Show, Generic, Rep
Eq LoggerSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerOrd LoggerSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerShow LoggerSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerGeneric LoggerSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializertype Rep LoggerSError = D1 ('MetaDataDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializer"LoggerSError"
"System.Nix.Store.Remote.Serializer"
"hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz"
'False) ((C1 ('MetaCons"LoggerSError_Prim"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"LoggerSError_InvalidOpCode"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) :+: (C1 ('MetaCons"LoggerSError_TooOldForErrorInfo"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"LoggerSError_TooNewForBasicError"
'PrefixI 'False) U1 :+: C1 ('MetaCons"LoggerSError_UnknownLogFieldType"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)))))
Handshake
Instances5Eq, Ord, Show, Generic, Rep
Eq HandshakeSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerOrd HandshakeSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerShow HandshakeSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerGeneric HandshakeSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializertype Rep HandshakeSError = D1 ('MetaDataDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializer"HandshakeSError"
"System.Nix.Store.Remote.Serializer"
"hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz"
'False) (C1 ('MetaCons"HandshakeSError_InvalidWorkerMagic"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: C1 ('MetaCons"HandshakeSError_InvalidTrustedFlag"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)))
Worker protocol
Request
Instances5Eq, Ord, Show, Generic, Rep
Eq RequestSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerOrd RequestSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerShow RequestSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerGeneric RequestSErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializertype Rep RequestSError = D1 ('MetaDataDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializer"RequestSError"
"System.Nix.Store.Remote.Serializer"
"hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz"
'False) ((C1 ('MetaCons"RequestSError_NotYetImplemented"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkerOp)) :+: C1 ('MetaCons"RequestSError_ReservedOp"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkerOp))) :+: (C1 ('MetaCons"RequestSError_PrimGet"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: (C1 ('MetaCons"RequestSError_PrimPut"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"RequestSError_PrimWorkerOp"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)))))
value
storeRequest :: (HasProtoVersion r, HasStoreDir r) => NixSerializer r RequestSError (Some StoreRequest)Reply
Instances5Eq, Ord, Show, Generic, Rep
Eq ReplySErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerOrd ReplySErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerShow ReplySErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.SerializerGeneric ReplySErrorDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializertype Rep ReplySError = D1 ('MetaDataDefined in hnix-store-remote-0.7.0.0 · System.Nix.Store.Remote.Serializer"ReplySError"
"System.Nix.Store.Remote.Serializer"
"hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz"
'False) (((C1 ('MetaCons"ReplySError_PrimGet"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"ReplySError_PrimPut"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError))) :+: (C1 ('MetaCons"ReplySError_DerivationOutput"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"ReplySError_GCResult"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)))) :+: ((C1 ('MetaCons"ReplySError_Metadata"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"ReplySError_Missing"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError))) :+: (C1 ('MetaCons"ReplySError_Realisation"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: (C1 ('MetaCons"ReplySError_RealisationWithId"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SError)) :+: C1 ('MetaCons"ReplySError_UnexpectedFalseOpSuccess"
'PrefixI 'False) U1))))
Parse a bool returned at the end of simple operations.
This is always 1 (True) so we assert that it really is so.
Errors for these operations are indicated via Logger_Error.
Realisation
BuildResult
GCResult
GCResult
Missing
Maybe (Metadata StorePath)
value
maybePathMetadata :: HasStoreDir r => NixSerializer r ReplySError (Maybe (Metadata StorePath))