packages feed

hydra-kernel-0.18.1: src/main/haskell/Hydra/Core/Dsl/Json/Writer.hs

-- Note: this is an automatically generated file. Do not edit.

-- | DSL functions for hydra.core.json.writer

module Hydra.Core.Dsl.Json.Writer where

import qualified Hydra.Core.Ast as Ast
import qualified Hydra.Core.Dsl.Ast as DslAst
import qualified Hydra.Core.Dsl.Json.Model as DslJsonModel
import qualified Hydra.Core.Dsl.Lib.Equality as Equality
import qualified Hydra.Core.Dsl.Lib.Lists as LibLists
import qualified Hydra.Core.Dsl.Lib.Literals as Literals
import qualified Hydra.Core.Dsl.Lib.Logic as Logic
import qualified Hydra.Core.Dsl.Lib.Math as Math
import qualified Hydra.Core.Dsl.Lib.Optionals as Optionals
import qualified Hydra.Core.Dsl.Lib.Ordering as Ordering
import qualified Hydra.Core.Dsl.Lib.Pairs as Pairs
import qualified Hydra.Core.Dsl.Lib.Strings as Strings
import qualified Hydra.Core.Dsl.Serialization as DslSerialization
import qualified Hydra.Core.Json.Model as JsonModel
import qualified Hydra.Core.Json.Writer as Writer
import qualified Hydra.Core.Overlay.Haskell.Lib.Lists as Lists
import qualified Hydra.Core.Model as Model
import qualified Hydra.Core.Serialization as Serialization
import qualified Hydra.Core.Typed as Typed
import Prelude hiding  (Enum, Ordering, decodeFloat, encodeFloat, fail, lines, map, pure, sum, unlines)
import qualified Data.Scientific as Sci
import Data.Void

-- | DSL reference to hydra.core.json.writer.colonOp
colonOp :: Typed.TypedTerm Ast.Op
colonOp = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.writer.colonOp"))

-- | DSL reference to hydra.core.json.writer.compactColonOp
compactColonOp :: Typed.TypedTerm Ast.Op
compactColonOp = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.writer.compactColonOp"))

-- | DSL reference to hydra.core.json.writer.compactCommaOp
compactCommaOp :: Typed.TypedTerm Ast.Op
compactCommaOp = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.writer.compactCommaOp"))

-- | DSL reference to hydra.core.json.writer.compactList
compactList :: Typed.TypedTerm Ast.Brackets -> Typed.TypedTerm [Ast.Expr] -> Typed.TypedTerm Ast.Expr
compactList arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.compactList")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.json.writer.defaultJsonWriterOptions
defaultJsonWriterOptions :: Typed.TypedTerm JsonModel.JsonWriterOptions
defaultJsonWriterOptions =
    Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.writer.defaultJsonWriterOptions"))

-- | DSL reference to hydra.core.json.writer.halfBlockStyleWith
halfBlockStyleWith :: Typed.TypedTerm JsonModel.JsonWriterOptions -> Typed.TypedTerm Ast.BlockStyle
halfBlockStyleWith arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.halfBlockStyleWith")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.writer.hexByte
hexByte :: Typed.TypedTerm Int -> Typed.TypedTerm String
hexByte arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.hexByte")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.writer.jsonString
jsonString :: Typed.TypedTerm String -> Typed.TypedTerm String
jsonString arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.jsonString")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.writer.keyValueToExprWith
keyValueToExprWith :: Typed.TypedTerm JsonModel.JsonWriterOptions -> Typed.TypedTerm Int -> Typed.TypedTerm (String, JsonModel.Value) -> Typed.TypedTerm Ast.Expr
keyValueToExprWith arg0 arg1 arg2 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermApplication (Model.Application {
          Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.keyValueToExprWith")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))

-- | DSL reference to hydra.core.json.writer.printJson
printJson :: Typed.TypedTerm JsonModel.Value -> Typed.TypedTerm String
printJson arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.printJson")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.writer.printJsonWith
printJsonWith :: Typed.TypedTerm JsonModel.JsonWriterOptions -> Typed.TypedTerm JsonModel.Value -> Typed.TypedTerm String
printJsonWith arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.printJsonWith")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.json.writer.styleForDepth
styleForDepth :: Typed.TypedTerm JsonModel.JsonWriterOptions -> Typed.TypedTerm Int -> Typed.TypedTerm Ast.Expr -> Typed.TypedTerm Ast.Expr -> Typed.TypedTerm Ast.Expr
styleForDepth arg0 arg1 arg2 arg3 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermApplication (Model.Application {
          Model.applicationFunction = (Model.TermApplication (Model.Application {
            Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.styleForDepth")),
            Model.applicationArgument = (Typed.unTypedTerm arg0)})),
          Model.applicationArgument = (Typed.unTypedTerm arg1)})),
        Model.applicationArgument = (Typed.unTypedTerm arg2)})),
      Model.applicationArgument = (Typed.unTypedTerm arg3)}))

-- | DSL reference to hydra.core.json.writer.valueToExpr
valueToExpr :: Typed.TypedTerm JsonModel.Value -> Typed.TypedTerm Ast.Expr
valueToExpr arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.valueToExpr")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.writer.valueToExprWith
valueToExprWith :: Typed.TypedTerm JsonModel.JsonWriterOptions -> Typed.TypedTerm Int -> Typed.TypedTerm JsonModel.Value -> Typed.TypedTerm Ast.Expr
valueToExprWith arg0 arg1 arg2 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermApplication (Model.Application {
          Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.writer.valueToExprWith")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))