packages feed

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

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

-- | DSL functions for hydra.core.variables

module Hydra.Core.Dsl.Variables where

import qualified Hydra.Core.Coders as Coders
import qualified Hydra.Core.Dsl.Coders as DslCoders
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.Maps as Maps
import qualified Hydra.Core.Dsl.Lib.Math as Math
import qualified Hydra.Core.Dsl.Lib.Optionals as Optionals
import qualified Hydra.Core.Dsl.Lib.Pairs as Pairs
import qualified Hydra.Core.Dsl.Lib.Sets as Sets
import qualified Hydra.Core.Dsl.Lib.Strings as Strings
import qualified Hydra.Core.Dsl.Model as DslModel
import qualified Hydra.Core.Dsl.Rewriting as DslRewriting
import qualified Hydra.Core.Overlay.Haskell.Lib.Lists as Lists
import qualified Hydra.Core.Model as Model
import qualified Hydra.Core.Rewriting as Rewriting
import qualified Hydra.Core.Typed as Typed
import qualified Hydra.Core.Variables as Variables
import Prelude hiding  (Enum, Ordering, decodeFloat, encodeFloat, fail, lines, map, pure, sum, unlines)
import qualified Data.Scientific as Sci
import Data.Void
import qualified Data.Map as M
import qualified Data.Set as S

-- | DSL reference to hydra.core.variables.applicationSpine
applicationSpine :: Typed.TypedTerm Model.Application -> Typed.TypedTerm (Model.Term, [Model.Term])
applicationSpine arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.applicationSpine")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.eagerFreeVariablesInTerm
eagerFreeVariablesInTerm :: Typed.TypedTerm Model.Term -> Typed.TypedTerm (S.Set Model.Name)
eagerFreeVariablesInTerm arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.eagerFreeVariablesInTerm")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.eagerVarsOfRedexBody
eagerVarsOfRedexBody :: Typed.TypedTerm (S.Set Model.Name) -> Typed.TypedTerm Model.Term -> Typed.TypedTerm [Model.Term] -> Typed.TypedTerm (S.Set Model.Name)
eagerVarsOfRedexBody 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.variables.eagerVarsOfRedexBody")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))

-- | DSL reference to hydra.core.variables.freeTypeVariablesInTerm
freeTypeVariablesInTerm :: Typed.TypedTerm Model.Term -> Typed.TypedTerm (S.Set Model.Name)
freeTypeVariablesInTerm arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeTypeVariablesInTerm")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInTerm
freeVariablesInTerm :: Typed.TypedTerm Model.Term -> Typed.TypedTerm (S.Set Model.Name)
freeVariablesInTerm arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInTerm")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInType
freeVariablesInType :: Typed.TypedTerm Model.Type -> Typed.TypedTerm (S.Set Model.Name)
freeVariablesInType arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInType")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInTypeOrdered
freeVariablesInTypeOrdered :: Typed.TypedTerm Model.Type -> Typed.TypedTerm [Model.Name]
freeVariablesInTypeOrdered arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInTypeOrdered")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInTypeScheme
freeVariablesInTypeScheme :: Typed.TypedTerm Model.TypeScheme -> Typed.TypedTerm (S.Set Model.Name)
freeVariablesInTypeScheme arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInTypeScheme")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInTypeSchemeSimple
freeVariablesInTypeSchemeSimple :: Typed.TypedTerm Model.TypeScheme -> Typed.TypedTerm (S.Set Model.Name)
freeVariablesInTypeSchemeSimple arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInTypeSchemeSimple")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freeVariablesInTypeSimple
freeVariablesInTypeSimple :: Typed.TypedTerm Model.Type -> Typed.TypedTerm (S.Set Model.Name)
freeVariablesInTypeSimple arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freeVariablesInTypeSimple")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.variables.freshNameAvoiding
freshNameAvoiding :: Typed.TypedTerm Model.Name -> Typed.TypedTerm (S.Set Model.Name) -> Typed.TypedTerm Model.Name
freshNameAvoiding arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.freshNameAvoiding")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.variables.isFreeVariableInTerm
isFreeVariableInTerm :: Typed.TypedTerm Model.Name -> Typed.TypedTerm Model.Term -> Typed.TypedTerm Bool
isFreeVariableInTerm arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.isFreeVariableInTerm")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

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

-- | DSL reference to hydra.core.variables.replaceFreeTermVariable
replaceFreeTermVariable :: Typed.TypedTerm Model.Name -> Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
replaceFreeTermVariable 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.variables.replaceFreeTermVariable")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))

-- | DSL reference to hydra.core.variables.replaceFreeTypeVariable
replaceFreeTypeVariable :: Typed.TypedTerm Model.Name -> Typed.TypedTerm Model.Type -> Typed.TypedTerm Model.Type -> Typed.TypedTerm Model.Type
replaceFreeTypeVariable 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.variables.replaceFreeTypeVariable")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))

-- | DSL reference to hydra.core.variables.substituteTypeVariables
substituteTypeVariables :: Typed.TypedTerm (M.Map Model.Name Model.Name) -> Typed.TypedTerm Model.Type -> Typed.TypedTerm Model.Type
substituteTypeVariables arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.substituteTypeVariables")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

-- | DSL reference to hydra.core.variables.substituteVariable
substituteVariable :: Typed.TypedTerm Model.Name -> Typed.TypedTerm Model.Name -> Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
substituteVariable 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.variables.substituteVariable")),
          Model.applicationArgument = (Typed.unTypedTerm arg0)})),
        Model.applicationArgument = (Typed.unTypedTerm arg1)})),
      Model.applicationArgument = (Typed.unTypedTerm arg2)}))

-- | DSL reference to hydra.core.variables.substituteVariables
substituteVariables :: Typed.TypedTerm (M.Map Model.Name Model.Name) -> Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
substituteVariables arg0 arg1 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermApplication (Model.Application {
        Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.variables.substituteVariables")),
        Model.applicationArgument = (Typed.unTypedTerm arg0)})),
      Model.applicationArgument = (Typed.unTypedTerm arg1)}))

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