plutus-core-1.36.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Evaluation.Machine.CostingFun.JSON

Description

A separate module for JSON instances, so that we can stick -O0 on it and avoid spending a lot of time optimizing loads of Core whose performance doesn't matter.

Orphan instances

FromJSON Coefficient0 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient0

parseJSONList :: Value -> Parser [Coefficient0]

omittedField :: Maybe Coefficient0

FromJSON Coefficient00 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient00

parseJSONList :: Value -> Parser [Coefficient00]

omittedField :: Maybe Coefficient00

FromJSON Coefficient01 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient01

parseJSONList :: Value -> Parser [Coefficient01]

omittedField :: Maybe Coefficient01

FromJSON Coefficient02 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient02

parseJSONList :: Value -> Parser [Coefficient02]

omittedField :: Maybe Coefficient02

FromJSON Coefficient1 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient1

parseJSONList :: Value -> Parser [Coefficient1]

omittedField :: Maybe Coefficient1

FromJSON Coefficient10 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient10

parseJSONList :: Value -> Parser [Coefficient10]

omittedField :: Maybe Coefficient10

FromJSON Coefficient11 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient11

parseJSONList :: Value -> Parser [Coefficient11]

omittedField :: Maybe Coefficient11

FromJSON Coefficient2 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient2

parseJSONList :: Value -> Parser [Coefficient2]

omittedField :: Maybe Coefficient2

FromJSON Coefficient20 Source # 
Instance details

Methods

parseJSON :: Value -> Parser Coefficient20

parseJSONList :: Value -> Parser [Coefficient20]

omittedField :: Maybe Coefficient20

FromJSON Intercept Source # 
Instance details

Methods

parseJSON :: Value -> Parser Intercept

parseJSONList :: Value -> Parser [Intercept]

omittedField :: Maybe Intercept

FromJSON ModelConstantOrLinear Source # 
Instance details

FromJSON ModelConstantOrOneArgument Source # 
Instance details

FromJSON ModelConstantOrTwoArguments Source # 
Instance details

FromJSON ModelFiveArguments Source # 
Instance details

FromJSON ModelFourArguments Source # 
Instance details

FromJSON ModelOneArgument Source # 
Instance details

FromJSON ModelSixArguments Source # 
Instance details

FromJSON ModelSubtractedSizes Source # 
Instance details

FromJSON ModelThreeArguments Source # 
Instance details

FromJSON ModelTwoArguments Source # 
Instance details

FromJSON OneVariableLinearFunction Source # 
Instance details

FromJSON OneVariableQuadraticFunction Source # 
Instance details

FromJSON Slope Source # 
Instance details

Methods

parseJSON :: Value -> Parser Slope

parseJSONList :: Value -> Parser [Slope]

omittedField :: Maybe Slope

FromJSON TwoVariableLinearFunction Source # 
Instance details

FromJSON TwoVariableQuadraticFunction Source # 
Instance details

ToJSON Coefficient0 Source # 
Instance details

Methods

toJSON :: Coefficient0 -> Value

toEncoding :: Coefficient0 -> Encoding

toJSONList :: [Coefficient0] -> Value

toEncodingList :: [Coefficient0] -> Encoding

omitField :: Coefficient0 -> Bool

ToJSON Coefficient00 Source # 
Instance details

ToJSON Coefficient01 Source # 
Instance details

ToJSON Coefficient02 Source # 
Instance details

ToJSON Coefficient1 Source # 
Instance details

Methods

toJSON :: Coefficient1 -> Value

toEncoding :: Coefficient1 -> Encoding

toJSONList :: [Coefficient1] -> Value

toEncodingList :: [Coefficient1] -> Encoding

omitField :: Coefficient1 -> Bool

ToJSON Coefficient10 Source # 
Instance details

ToJSON Coefficient11 Source # 
Instance details

ToJSON Coefficient2 Source # 
Instance details

Methods

toJSON :: Coefficient2 -> Value

toEncoding :: Coefficient2 -> Encoding

toJSONList :: [Coefficient2] -> Value

toEncodingList :: [Coefficient2] -> Encoding

omitField :: Coefficient2 -> Bool

ToJSON Coefficient20 Source # 
Instance details

ToJSON Intercept Source # 
Instance details

Methods

toJSON :: Intercept -> Value

toEncoding :: Intercept -> Encoding

toJSONList :: [Intercept] -> Value

toEncodingList :: [Intercept] -> Encoding

omitField :: Intercept -> Bool

ToJSON ModelConstantOrLinear Source # 
Instance details

ToJSON ModelConstantOrOneArgument Source # 
Instance details

ToJSON ModelConstantOrTwoArguments Source # 
Instance details

ToJSON ModelFiveArguments Source # 
Instance details

ToJSON ModelFourArguments Source # 
Instance details

ToJSON ModelOneArgument Source # 
Instance details

ToJSON ModelSixArguments Source # 
Instance details

ToJSON ModelSubtractedSizes Source # 
Instance details

ToJSON ModelThreeArguments Source # 
Instance details

ToJSON ModelTwoArguments Source # 
Instance details

ToJSON OneVariableLinearFunction Source # 
Instance details

ToJSON OneVariableQuadraticFunction Source # 
Instance details

ToJSON Slope Source # 
Instance details

Methods

toJSON :: Slope -> Value

toEncoding :: Slope -> Encoding

toJSONList :: [Slope] -> Value

toEncodingList :: [Slope] -> Encoding

omitField :: Slope -> Bool

ToJSON TwoVariableLinearFunction Source # 
Instance details

ToJSON TwoVariableQuadraticFunction Source # 
Instance details

FromJSON model => FromJSON (CostingFun model) Source # 
Instance details

Methods

parseJSON :: Value -> Parser (CostingFun model)

parseJSONList :: Value -> Parser [CostingFun model]

omittedField :: Maybe (CostingFun model)

ToJSON model => ToJSON (CostingFun model) Source # 
Instance details

Methods

toJSON :: CostingFun model -> Value

toEncoding :: CostingFun model -> Encoding

toJSONList :: [CostingFun model] -> Value

toEncodingList :: [CostingFun model] -> Encoding

omitField :: CostingFun model -> Bool