Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data EvaluationDiff = EvaluationDiff {
- beforeId :: Id Evaluation
- afterId :: Id Evaluation
- attributes :: [AttributeDiff]
- ifds :: [IFDDiff]
- newtype AttributeDiff = AttributeDiff (SimpleAttribute AttributeValueDiff)
- newtype AttributeValueDiff = AttributeValueDiff (Diff (Attribute (Result AttributeError Derivation)))
- data Diff a = Diff {}
- newtype IFDDiff = IFDDiff (Diff DerivationOutputNamePair)
- data DerivationOutputNamePair = DerivationOutputNamePair {}
Documentation
data EvaluationDiff Source #
EvaluationDiff | |
|
Instances
newtype AttributeDiff Source #
Instances
newtype AttributeValueDiff Source #
Instances
Generic type for additions, remvals and changes. Addition and removal are represented by nulling the appropriate field.
This gives the best JSON representation, despite the fact that Absence is
representable: {before: null, after: null}
. Most - if not all - endpoints
can be expected to not return such a value.
NOTE: Generic types must always be wrapped in a newtype, so as to avoid ambiguities in the generated schema.
Instances
FromJSON a => FromJSON (Diff a) Source # | |
ToJSON a => ToJSON (Diff a) Source # | |
Generic (Diff a) Source # | |
Show a => Show (Diff a) Source # | |
NFData a => NFData (Diff a) Source # | |
Defined in Hercules.API.Build.EvaluationDiff | |
Eq a => Eq (Diff a) Source # | |
ToSchema a => ToSchema (Diff a) Source # | |
Defined in Hercules.API.Build.EvaluationDiff declareNamedSchema :: Proxy (Diff a) -> Declare (Definitions Schema) NamedSchema Source # | |
type Rep (Diff a) Source # | |
Defined in Hercules.API.Build.EvaluationDiff type Rep (Diff a) = D1 ('MetaData "Diff" "Hercules.API.Build.EvaluationDiff" "hercules-ci-api-0.8.1.0-inplace" 'False) (C1 ('MetaCons "Diff" 'PrefixI 'True) (S1 ('MetaSel ('Just "before") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a)) :*: S1 ('MetaSel ('Just "after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a)))) |
Instances
FromJSON IFDDiff Source # | |
ToJSON IFDDiff Source # | |
Generic IFDDiff Source # | |
Show IFDDiff Source # | |
NFData IFDDiff Source # | |
Defined in Hercules.API.Build.EvaluationDiff | |
Eq IFDDiff Source # | |
ToSchema IFDDiff Source # | |
Defined in Hercules.API.Build.EvaluationDiff | |
type Rep IFDDiff Source # | |
Defined in Hercules.API.Build.EvaluationDiff type Rep IFDDiff = D1 ('MetaData "IFDDiff" "Hercules.API.Build.EvaluationDiff" "hercules-ci-api-0.8.1.0-inplace" 'True) (C1 ('MetaCons "IFDDiff" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Diff DerivationOutputNamePair)))) |
data DerivationOutputNamePair Source #