packages feed

hydra-kernel-0.18.1: src/main/haskell/Hydra/Core/Dsl/Test/Utils.hs

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

-- | DSL functions for hydra.core.test.utils

module Hydra.Core.Dsl.Test.Utils where

import qualified Hydra.Core.Dsl.Lexical as DslLexical
import qualified Hydra.Core.Dsl.Lib.Eithers as Eithers
import qualified Hydra.Core.Dsl.Testing as DslTesting
import qualified Hydra.Core.Dsl.Typing as DslTyping
import qualified Hydra.Core.Graph as Graph
import qualified Hydra.Core.Inference as Inference
import qualified Hydra.Core.Lexical as Lexical
import qualified Hydra.Core.Model as Model
import qualified Hydra.Core.Print.Errors as Errors
import qualified Hydra.Core.Test.Utils as Utils
import qualified Hydra.Core.Testing as Testing
import qualified Hydra.Core.Typed as Typed
import qualified Hydra.Core.Typing as Typing
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.test.utils.inferTerm
inferTerm :: Typed.TypedTerm Graph.Graph -> Typed.TypedTerm Model.Term -> Typed.TypedTerm (Either String Model.Term)
inferTerm arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.test.utils.inferTerm")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.test.utils.inferTestCase
inferTestCase :: Typed.TypedTerm t0 -> Typed.TypedTerm Testing.TestCaseWithMetadata -> Typed.TypedTerm (Either t1 Testing.TestCaseWithMetadata)
inferTestCase arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.test.utils.inferTestCase")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.test.utils.inferTestGroupTerms
inferTestGroupTerms :: Typed.TypedTerm t0 -> Typed.TypedTerm Testing.TestGroup -> Typed.TypedTerm (Either t1 Testing.TestGroup)
inferTestGroupTerms arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.test.utils.inferTestGroupTerms")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))