Modulehnix-store-remote-0.7.0.0Haskell2010
System.Nix.Store.Remote.Serializer
|
- 6 types
- 59 values
- Packagehnix-store-remote-0.7.0.0
- Exports65
- LanguageHaskell2010
- LicenceApache-2.0
- SourceSerializer.hs
NixSerializer
3 declarationsErrors
1 declarationConstructors
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
6 declarationsUTCTime
1 declarationCombinators
6 declarationsProtoVersion
1 declarationStorePath
4 declarationsMetadata
1 declarationOutputName
1 declarationSignatures
2 declarationsSome HashAlgo
1 declarationDigest
1 declarationDSum HashAlgo Digest
1 declarationDerivation
1 declarationDerivation
1 declarationBuild
1 declarationLogger
12 declarationsInstances5Eq, 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
3 declarationsInstances5Eq, 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
2 declarationsRequest
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))