hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/lib/files.json
{
"name": "hydra.core.dsl.lib.files",
"metadata": {"description": "DSL functions for hydra.core.lib.files", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.lib.files"},
{"module": "hydra.core.typed"},
{"module": "hydra.core.encode.lib.files"},
{"module": "hydra.core.decode.lib.files"},
{"module": "hydra.core.paths"},
{"module": "hydra.core.ast"},
{"module": "hydra.core.coders"},
{"module": "hydra.core.model"},
{"module": "hydra.core.diff"},
{"module": "hydra.core.docs"},
{"module": "hydra.core.error.checking"},
{"module": "hydra.core.error.model"},
{"module": "hydra.core.error.file"},
{"module": "hydra.core.error.packaging"},
{"module": "hydra.core.error.system"},
{"module": "hydra.core.errors"},
{"module": "hydra.core.file"},
{"module": "hydra.core.graph"},
{"module": "hydra.core.json.model"},
{"module": "hydra.core.markdown"},
{"module": "hydra.core.packaging"},
{"module": "hydra.core.parsing"},
{"module": "hydra.core.query"},
{"module": "hydra.core.regex"},
{"module": "hydra.core.relational"},
{"module": "hydra.core.system"},
{"module": "hydra.core.tabular"},
{"module": "hydra.core.testing"},
{"module": "hydra.core.time"},
{"module": "hydra.core.topology"},
{"module": "hydra.core.typing"},
{"module": "hydra.core.util"},
{"module": "hydra.core.validation"},
{"module": "hydra.core.variants"},
{"module": "hydra.core.dsl.paths"},
{"module": "hydra.core.dsl.ast"},
{"module": "hydra.core.dsl.coders"},
{"module": "hydra.core.dsl.model"},
{"module": "hydra.core.dsl.diff"},
{"module": "hydra.core.dsl.docs"},
{"module": "hydra.core.dsl.error.checking"},
{"module": "hydra.core.dsl.error.model"},
{"module": "hydra.core.dsl.error.file"},
{"module": "hydra.core.dsl.error.packaging"},
{"module": "hydra.core.dsl.error.system"},
{"module": "hydra.core.dsl.errors"},
{"module": "hydra.core.dsl.file"},
{"module": "hydra.core.dsl.graph"},
{"module": "hydra.core.dsl.json.model"},
{"module": "hydra.core.dsl.markdown"},
{"module": "hydra.core.dsl.packaging"},
{"module": "hydra.core.dsl.parsing"},
{"module": "hydra.core.dsl.query"},
{"module": "hydra.core.dsl.regex"},
{"module": "hydra.core.dsl.relational"},
{"module": "hydra.core.dsl.system"},
{"module": "hydra.core.dsl.tabular"},
{"module": "hydra.core.dsl.testing"},
{"module": "hydra.core.dsl.time"},
{"module": "hydra.core.dsl.topology"},
{"module": "hydra.core.dsl.typed"},
{"module": "hydra.core.dsl.typing"},
{"module": "hydra.core.dsl.util"},
{"module": "hydra.core.dsl.validation"},
{"module": "hydra.core.dsl.variants"}],
"definitions": [
{
"term": {
"name": "hydra.core.dsl.lib.files.appendFile",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false},
{
"name": "arg1",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"lambda": {
"parameter": "contents",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.appendFile"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "contents"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.appendFile"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.copy",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "recursive",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"body": {
"lambda": {
"parameter": "source",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"lambda": {
"parameter": "destination",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.copy"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "recursive"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "source"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "destination"}}}}]}}}}}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.files.copy"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.createDirectory",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "recursive",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.createDirectory"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "recursive"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.createDirectory"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.createSymlink",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "target",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"lambda": {
"parameter": "link",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.createSymlink"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "target"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "link"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.createSymlink"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.exists",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": {"literal": "boolean"}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.exists"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.files.exists"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.listDirectory",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"effect": {
"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": {"list": {"variable": "hydra.core.file.FilePath"}}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.listDirectory"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.listDirectory"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.readFile",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": {"literal": "binary"}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.readFile"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.files.readFile"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.readSymlink",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": {"variable": "hydra.core.file.FilePath"}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.readSymlink"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.readSymlink"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.removeDirectory",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "recursive",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.removeDirectory"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "recursive"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.removeDirectory"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.removeFile",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.removeFile"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.removeFile"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.rename",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "source",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"lambda": {
"parameter": "destination",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.rename"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "source"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "destination"}}}}]}}}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.files.rename"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.status",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"effect": {
"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": {"variable": "hydra.core.file.FileStatus"}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "followLinks",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}},
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.status"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "followLinks"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.files.status"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lib.files.writeFile",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"isLazy": false},
{
"name": "arg1",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.file.FileError"}, "right": "unit"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "path",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.file.FilePath"}}},
"body": {
"lambda": {
"parameter": "contents",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.files.writeFile"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "path"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "contents"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lib.files.writeFile"}}}]}}}}}]}