{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Build.EvaluationDependency where

import Hercules.API.Derivation (Derivation)
import Hercules.API.Prelude

data EvaluationDependency = EvaluationDependency
  { EvaluationDependency -> Int
index :: Int,
    EvaluationDependency -> Derivation
derivation :: Derivation,
    EvaluationDependency -> Text
outputName :: Text
  }
  deriving (forall x. Rep EvaluationDependency x -> EvaluationDependency
forall x. EvaluationDependency -> Rep EvaluationDependency x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EvaluationDependency x -> EvaluationDependency
$cfrom :: forall x. EvaluationDependency -> Rep EvaluationDependency x
Generic, Int -> EvaluationDependency -> ShowS
[EvaluationDependency] -> ShowS
EvaluationDependency -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EvaluationDependency] -> ShowS
$cshowList :: [EvaluationDependency] -> ShowS
show :: EvaluationDependency -> String
$cshow :: EvaluationDependency -> String
showsPrec :: Int -> EvaluationDependency -> ShowS
$cshowsPrec :: Int -> EvaluationDependency -> ShowS
Show, EvaluationDependency -> EvaluationDependency -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EvaluationDependency -> EvaluationDependency -> Bool
$c/= :: EvaluationDependency -> EvaluationDependency -> Bool
== :: EvaluationDependency -> EvaluationDependency -> Bool
$c== :: EvaluationDependency -> EvaluationDependency -> Bool
Eq, EvaluationDependency -> ()
forall a. (a -> ()) -> NFData a
rnf :: EvaluationDependency -> ()
$crnf :: EvaluationDependency -> ()
NFData, [EvaluationDependency] -> Encoding
[EvaluationDependency] -> Value
EvaluationDependency -> Encoding
EvaluationDependency -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EvaluationDependency] -> Encoding
$ctoEncodingList :: [EvaluationDependency] -> Encoding
toJSONList :: [EvaluationDependency] -> Value
$ctoJSONList :: [EvaluationDependency] -> Value
toEncoding :: EvaluationDependency -> Encoding
$ctoEncoding :: EvaluationDependency -> Encoding
toJSON :: EvaluationDependency -> Value
$ctoJSON :: EvaluationDependency -> Value
ToJSON, Value -> Parser [EvaluationDependency]
Value -> Parser EvaluationDependency
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EvaluationDependency]
$cparseJSONList :: Value -> Parser [EvaluationDependency]
parseJSON :: Value -> Parser EvaluationDependency
$cparseJSON :: Value -> Parser EvaluationDependency
FromJSON, Proxy EvaluationDependency
-> Declare (Definitions Schema) NamedSchema
forall a.
(Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a
declareNamedSchema :: Proxy EvaluationDependency
-> Declare (Definitions Schema) NamedSchema
$cdeclareNamedSchema :: Proxy EvaluationDependency
-> Declare (Definitions Schema) NamedSchema
ToSchema)