{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Build.DerivationEvent.BuiltOutput where

import Hercules.API.Prelude

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