hydra-kernel-0.18.1: src/main/haskell/Hydra/Core/Dsl/Dependencies.hs
-- Note: this is an automatically generated file. Do not edit.
-- | DSL functions for hydra.core.dependencies
module Hydra.Core.Dsl.Dependencies where
import qualified Hydra.Core.Annotations as Annotations
import qualified Hydra.Core.Coders as Coders
import qualified Hydra.Core.Constants as Constants
import qualified Hydra.Core.Dependencies as Dependencies
import qualified Hydra.Core.Dsl.Annotations as DslAnnotations
import qualified Hydra.Core.Dsl.Coders as DslCoders
import qualified Hydra.Core.Dsl.Constants as DslConstants
import qualified Hydra.Core.Dsl.Errors as DslErrors
import qualified Hydra.Core.Dsl.Lexical as DslLexical
import qualified Hydra.Core.Dsl.Lib.Eithers as Eithers
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.Ordering as Ordering
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.Names as DslNames
import qualified Hydra.Core.Dsl.Packaging as DslPackaging
import qualified Hydra.Core.Dsl.Rewriting as DslRewriting
import qualified Hydra.Core.Dsl.Sorting as DslSorting
import qualified Hydra.Core.Dsl.Strip as DslStrip
import qualified Hydra.Core.Dsl.Variables as DslVariables
import qualified Hydra.Core.Errors as Errors
import qualified Hydra.Core.Graph as Graph
import qualified Hydra.Core.Lexical as Lexical
import qualified Hydra.Core.Overlay.Haskell.Lib.Lists as Lists
import qualified Hydra.Core.Model as Model
import qualified Hydra.Core.Names as Names
import qualified Hydra.Core.Packaging as Packaging
import qualified Hydra.Core.Rewriting as Rewriting
import qualified Hydra.Core.Sorting as Sorting
import qualified Hydra.Core.Strip as Strip
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.dependencies.definitionsWithDependencies
definitionsWithDependencies :: Typed.TypedTerm t0 -> Typed.TypedTerm Graph.Graph -> Typed.TypedTerm [Model.Binding] -> Typed.TypedTerm (Either Errors.Error [Model.Binding])
definitionsWithDependencies 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.dependencies.definitionsWithDependencies")),
Model.applicationArgument = (Typed.unTypedTerm arg0)})),
Model.applicationArgument = (Typed.unTypedTerm arg1)})),
Model.applicationArgument = (Typed.unTypedTerm arg2)}))
-- | DSL reference to hydra.core.dependencies.flattenLetTerms
flattenLetTerms :: Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
flattenLetTerms arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.flattenLetTerms")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.inlineType
inlineType :: Typed.TypedTerm (M.Map Model.Name Model.Type) -> Typed.TypedTerm Model.Type -> Typed.TypedTerm (Either Errors.Error Model.Type)
inlineType arg0 arg1 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.inlineType")),
Model.applicationArgument = (Typed.unTypedTerm arg0)})),
Model.applicationArgument = (Typed.unTypedTerm arg1)}))
-- | DSL reference to hydra.core.dependencies.isLambda
isLambda :: Typed.TypedTerm Model.Term -> Typed.TypedTerm Bool
isLambda arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.isLambda")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.liftLambdaAboveLet
liftLambdaAboveLet :: Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
liftLambdaAboveLet arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.liftLambdaAboveLet")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.pruneLet
pruneLet :: Typed.TypedTerm Model.Let -> Typed.TypedTerm Model.Let
pruneLet arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.pruneLet")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.replaceTypedefs
replaceTypedefs :: Typed.TypedTerm (M.Map Model.Name Model.TypeScheme) -> Typed.TypedTerm Model.Type -> Typed.TypedTerm Model.Type
replaceTypedefs arg0 arg1 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.replaceTypedefs")),
Model.applicationArgument = (Typed.unTypedTerm arg0)})),
Model.applicationArgument = (Typed.unTypedTerm arg1)}))
-- | DSL reference to hydra.core.dependencies.simplifyTerm
simplifyTerm :: Typed.TypedTerm Model.Term -> Typed.TypedTerm Model.Term
simplifyTerm arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.simplifyTerm")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.termDependencyNames
termDependencyNames :: Typed.TypedTerm Bool -> Typed.TypedTerm Bool -> Typed.TypedTerm Bool -> Typed.TypedTerm Model.Term -> Typed.TypedTerm (S.Set Model.Name)
termDependencyNames 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.dependencies.termDependencyNames")),
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.dependencies.toShortNames
toShortNames :: Typed.TypedTerm [Model.Name] -> Typed.TypedTerm (M.Map Model.Name Model.Name)
toShortNames arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.toShortNames")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.topologicalSortBindingMap
topologicalSortBindingMap :: Typed.TypedTerm (M.Map Model.Name Model.Term) -> Typed.TypedTerm [[(Model.Name, Model.Term)]]
topologicalSortBindingMap arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.topologicalSortBindingMap")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.topologicalSortBindings
topologicalSortBindings :: Typed.TypedTerm [Model.Binding] -> Typed.TypedTerm (Either [[Model.Name]] [Model.Name])
topologicalSortBindings arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.topologicalSortBindings")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.topologicalSortTypeDefinitions
topologicalSortTypeDefinitions :: Typed.TypedTerm [Packaging.TypeDefinition] -> Typed.TypedTerm [[Packaging.TypeDefinition]]
topologicalSortTypeDefinitions arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.topologicalSortTypeDefinitions")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))
-- | DSL reference to hydra.core.dependencies.typeDependencyNames
typeDependencyNames :: Typed.TypedTerm Bool -> Typed.TypedTerm Model.Type -> Typed.TypedTerm (S.Set Model.Name)
typeDependencyNames arg0 arg1 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.typeDependencyNames")),
Model.applicationArgument = (Typed.unTypedTerm arg0)})),
Model.applicationArgument = (Typed.unTypedTerm arg1)}))
-- | DSL reference to hydra.core.dependencies.typeNamesInType
typeNamesInType :: Typed.TypedTerm Model.Type -> Typed.TypedTerm (S.Set t0)
typeNamesInType arg0 =
Typed.TypedTerm (Model.TermApplication (Model.Application {
Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.dependencies.typeNamesInType")),
Model.applicationArgument = (Typed.unTypedTerm arg0)}))