Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.Nix.Realisation
Description
Synopsis
- data DerivationOutput a = DerivationOutput {}
- data DerivationOutputError
- derivationOutputBuilder :: (outputName -> Text) -> DerivationOutput outputName -> Builder
- derivationOutputParser :: (Text -> Either InvalidNameError outputName) -> Text -> Either DerivationOutputError (DerivationOutput outputName)
- data Realisation = Realisation {}
- newtype RealisationWithId = RealisationWithId {}
Documentation
data DerivationOutput a Source #
Output of the derivation
Constructors
DerivationOutput | |
Fields
|
Instances
data DerivationOutputError Source #
Constructors
DerivationOutputError_Digest String | |
DerivationOutputError_Name InvalidNameError | |
DerivationOutputError_NoExclamationMark | |
DerivationOutputError_NoColon | |
DerivationOutputError_TooManyParts [Text] |
Instances
Show DerivationOutputError Source # | |
Defined in System.Nix.Realisation Methods showsPrec :: Int -> DerivationOutputError -> ShowS # show :: DerivationOutputError -> String # showList :: [DerivationOutputError] -> ShowS # | |
Eq DerivationOutputError Source # | |
Defined in System.Nix.Realisation Methods (==) :: DerivationOutputError -> DerivationOutputError -> Bool # (/=) :: DerivationOutputError -> DerivationOutputError -> Bool # | |
Ord DerivationOutputError Source # | |
Defined in System.Nix.Realisation Methods compare :: DerivationOutputError -> DerivationOutputError -> Ordering # (<) :: DerivationOutputError -> DerivationOutputError -> Bool # (<=) :: DerivationOutputError -> DerivationOutputError -> Bool # (>) :: DerivationOutputError -> DerivationOutputError -> Bool # (>=) :: DerivationOutputError -> DerivationOutputError -> Bool # max :: DerivationOutputError -> DerivationOutputError -> DerivationOutputError # min :: DerivationOutputError -> DerivationOutputError -> DerivationOutputError # |
derivationOutputBuilder :: (outputName -> Text) -> DerivationOutput outputName -> Builder Source #
derivationOutputParser :: (Text -> Either InvalidNameError outputName) -> Text -> Either DerivationOutputError (DerivationOutput outputName) Source #
data Realisation Source #
Build realisation context
realisationId is ommited since it is a key
of type DerivationOutput OutputName
so
we will use RealisationWithId
newtype
Constructors
Realisation | |
Fields
|
Instances
Generic Realisation Source # | |||||
Defined in System.Nix.Realisation Associated Types
| |||||
Show Realisation Source # | |||||
Defined in System.Nix.Realisation Methods showsPrec :: Int -> Realisation -> ShowS # show :: Realisation -> String # showList :: [Realisation] -> ShowS # | |||||
Eq Realisation Source # | |||||
Defined in System.Nix.Realisation | |||||
Ord Realisation Source # | |||||
Defined in System.Nix.Realisation Methods compare :: Realisation -> Realisation -> Ordering # (<) :: Realisation -> Realisation -> Bool # (<=) :: Realisation -> Realisation -> Bool # (>) :: Realisation -> Realisation -> Bool # (>=) :: Realisation -> Realisation -> Bool # max :: Realisation -> Realisation -> Realisation # min :: Realisation -> Realisation -> Realisation # | |||||
type Rep Realisation Source # | |||||
Defined in System.Nix.Realisation type Rep Realisation = D1 ('MetaData "Realisation" "System.Nix.Realisation" "hnix-store-core-0.8.0.0-FTqw4iIy5sQBH9BMZeLljI" 'False) (C1 ('MetaCons "Realisation" 'PrefixI 'True) (S1 ('MetaSel ('Just "realisationOutPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StorePath) :*: (S1 ('MetaSel ('Just "realisationSignatures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Signature)) :*: S1 ('MetaSel ('Just "realisationDependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (DerivationOutput OutputName) StorePath))))) |
newtype RealisationWithId Source #
For wire protocol
We store this normalized in Build.buildResultBuiltOutputs
as Map (DerivationOutput OutputName) Realisation
but wire protocol needs it de-normalized so we
need a special (From|To)JSON instances for it
Constructors
RealisationWithId | |
Fields |
Instances
Generic RealisationWithId Source # | |||||
Defined in System.Nix.Realisation Associated Types
Methods from :: RealisationWithId -> Rep RealisationWithId x # to :: Rep RealisationWithId x -> RealisationWithId # | |||||
Show RealisationWithId Source # | |||||
Defined in System.Nix.Realisation Methods showsPrec :: Int -> RealisationWithId -> ShowS # show :: RealisationWithId -> String # showList :: [RealisationWithId] -> ShowS # | |||||
Eq RealisationWithId Source # | |||||
Defined in System.Nix.Realisation Methods (==) :: RealisationWithId -> RealisationWithId -> Bool # (/=) :: RealisationWithId -> RealisationWithId -> Bool # | |||||
Ord RealisationWithId Source # | |||||
Defined in System.Nix.Realisation Methods compare :: RealisationWithId -> RealisationWithId -> Ordering # (<) :: RealisationWithId -> RealisationWithId -> Bool # (<=) :: RealisationWithId -> RealisationWithId -> Bool # (>) :: RealisationWithId -> RealisationWithId -> Bool # (>=) :: RealisationWithId -> RealisationWithId -> Bool # max :: RealisationWithId -> RealisationWithId -> RealisationWithId # min :: RealisationWithId -> RealisationWithId -> RealisationWithId # | |||||
type Rep RealisationWithId Source # | |||||
Defined in System.Nix.Realisation type Rep RealisationWithId = D1 ('MetaData "RealisationWithId" "System.Nix.Realisation" "hnix-store-core-0.8.0.0-FTqw4iIy5sQBH9BMZeLljI" 'True) (C1 ('MetaCons "RealisationWithId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unRealisationWithId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DerivationOutput OutputName, Realisation)))) |