hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/decode/markdown.json
{
"name": "hydra.core.decode.markdown",
"metadata": {"description": "Term decoders for hydra.core.markdown", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.extract.model"},
{"module": "hydra.core.lexical"},
{"module": "hydra.core.rewriting"},
{"module": "hydra.core.markdown"},
{"module": "hydra.core.util"}],
"definitions": [
{
"term": {
"name": "hydra.core.decode.markdown.block",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Block"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected union"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"cases": [
{
"name": "inject",
"handler": {
"lambda": {
"parameter": "inj",
"domain": {"variable": "hydra.core.model.Injection"},
"body": {
"let": {
"bindings": [
{
"name": "field",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Injection", "fieldName": "field"}},
"argument": {"variable": "inj"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Field"}, "constraints": []}},
{
"name": "fname",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "name"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Name"}, "constraints": []}},
{
"name": "fterm",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "term"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Term"}, "constraints": []}},
{
"name": "variantMap",
"term": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.maps.fromList"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codeBlock"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.CodeBlock"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.CodeBlock"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "codeBlock", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.codeBlock"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "list"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.List"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.List"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "list", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.list"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "paragraph"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.Paragraph"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.Paragraph"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "paragraph", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.paragraph"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "raw"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"literal": "string"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "raw", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "section"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.Section"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.Section"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "section", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.section"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "table"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.Table"}}},
"type": {"variable": "hydra.core.markdown.Block"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.Table"},
"body": {"inject": {"typeName": "hydra.core.markdown.Block", "field": {"name": "table", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.table"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}}]}}},
"typeScheme": {
"variables": [],
"body": {
"map": {
"keys": {"variable": "hydra.core.model.Name"},
"values": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"variable": "hydra.core.lib.optionals.match"},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.maps.lookup"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}}}},
"argument": {"variable": "fname"}}},
"argument": {"variable": "variantMap"}}}}},
"argument": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {
"application": {
"function": {"variable": "hydra.core.lib.strings.concat"},
"argument": {
"list": [
{"literal": {"string": "no such field "}},
{"application": {"function": {"unwrap": "hydra.core.model.Name"}, "argument": {"variable": "fname"}}},
{"literal": {"string": " in union"}}]}}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Block"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Block"}}}}},
"body": {"application": {"function": {"variable": "f"}, "argument": {"variable": "fterm"}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Block"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.codeBlock",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.CodeBlock"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.CodeBlock"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.CodeBlock"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.CodeBlock"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.CodeBlock"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"optional": {"literal": "string"}}}},
"type": {"variable": "hydra.core.markdown.CodeBlock"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"optional": {"literal": "string"}}}},
"argument": {"literal": {"string": "language"}}}},
"argument": {
"application": {
"function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeMaybe"}, "type": {"literal": "string"}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_language",
"domain": {"optional": {"literal": "string"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.CodeBlock"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "content"}}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_content",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.CodeBlock",
"fields": [
{"name": "language", "term": {"variable": "field_language"}},
{"name": "content", "term": {"variable": "field_content"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.CodeBlock"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.CodeBlock"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.document",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Document"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Document"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Document"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Document"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Document"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.Document"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "title"}}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_title",
"domain": {"literal": "string"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.Block"}}}},
"type": {"variable": "hydra.core.markdown.Document"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.Block"}}}},
"argument": {"literal": {"string": "content"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Block"}}},
"argument": {"variable": "hydra.core.decode.markdown.block"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_content",
"domain": {"list": {"variable": "hydra.core.markdown.Block"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Document",
"fields": [{"name": "title", "term": {"variable": "field_title"}}, {"name": "content", "term": {"variable": "field_content"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Document"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Document"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.heading",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Heading"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Heading"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Heading"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Heading"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": {"integer": "int32"}}}},
"argument": {"literal": {"string": "level"}}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": {"integer": "int32"}}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected int32 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}},
"cases": [
{
"name": "integer",
"handler": {
"cases": {
"typeName": "hydra.core.model.IntegerValue",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected int32 value"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}},
"cases": [
{
"name": "int32",
"handler": {
"lambda": {
"parameter": "i",
"domain": {"literal": {"integer": "int32"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "i"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": {"integer": "int32"}}}}}}}]}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_level",
"domain": {"literal": {"integer": "int32"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"argument": {"literal": {"string": "content"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_content",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"optional": {"literal": "string"}}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"optional": {"literal": "string"}}}},
"argument": {"literal": {"string": "anchor"}}}},
"argument": {
"application": {
"function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeMaybe"}, "type": {"literal": "string"}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_anchor",
"domain": {"optional": {"literal": "string"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Heading",
"fields": [
{"name": "level", "term": {"variable": "field_level"}},
{"name": "content", "term": {"variable": "field_content"}},
{"name": "anchor", "term": {"variable": "field_anchor"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Heading"}}}}}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Heading"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.inline",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected union"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"cases": [
{
"name": "inject",
"handler": {
"lambda": {
"parameter": "inj",
"domain": {"variable": "hydra.core.model.Injection"},
"body": {
"let": {
"bindings": [
{
"name": "field",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Injection", "fieldName": "field"}},
"argument": {"variable": "inj"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Field"}, "constraints": []}},
{
"name": "fname",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "name"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Name"}, "constraints": []}},
{
"name": "fterm",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "term"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Term"}, "constraints": []}},
{
"name": "variantMap",
"term": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.maps.fromList"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "code"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"literal": "string"},
"body": {"inject": {"typeName": "hydra.core.markdown.Inline", "field": {"name": "code", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "emphasis"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {"inject": {"typeName": "hydra.core.markdown.Inline", "field": {"name": "emphasis", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "link"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"variable": "hydra.core.markdown.Link"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.markdown.Link"},
"body": {"inject": {"typeName": "hydra.core.markdown.Inline", "field": {"name": "link", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.markdown.link"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "strong"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {"inject": {"typeName": "hydra.core.markdown.Inline", "field": {"name": "strong", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "text"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"literal": "string"},
"body": {"inject": {"typeName": "hydra.core.markdown.Inline", "field": {"name": "text", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}}]}}},
"typeScheme": {
"variables": [],
"body": {
"map": {
"keys": {"variable": "hydra.core.model.Name"},
"values": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"variable": "hydra.core.lib.optionals.match"},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.maps.lookup"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}}}},
"argument": {"variable": "fname"}}},
"argument": {"variable": "variantMap"}}}}},
"argument": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {
"application": {
"function": {"variable": "hydra.core.lib.strings.concat"},
"argument": {
"list": [
{"literal": {"string": "no such field "}},
{"application": {"function": {"unwrap": "hydra.core.model.Name"}, "argument": {"variable": "fname"}}},
{"literal": {"string": " in union"}}]}}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Inline"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Inline"}}}}},
"body": {"application": {"function": {"variable": "f"}, "argument": {"variable": "fterm"}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Inline"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.link",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Link"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Link"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Link"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Link"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Link"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.Link"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"argument": {"literal": {"string": "text"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_text",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.markdown.Link"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "target"}}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_target",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Link",
"fields": [{"name": "text", "term": {"variable": "field_text"}}, {"name": "target", "term": {"variable": "field_target"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Link"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Link"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.list",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.List"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.List"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.List"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.List"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.List"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "boolean"}}},
"type": {"variable": "hydra.core.markdown.List"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "boolean"}}},
"argument": {"literal": {"string": "ordered"}}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "boolean"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "boolean"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "boolean"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected boolean literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "boolean"}}},
"cases": [
{
"name": "boolean",
"handler": {
"lambda": {
"parameter": "b",
"domain": {"literal": "boolean"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "b"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "boolean"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_ordered",
"domain": {"literal": "boolean"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.ListItem"}}}},
"type": {"variable": "hydra.core.markdown.List"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.ListItem"}}}},
"argument": {"literal": {"string": "items"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.ListItem"}}},
"argument": {"variable": "hydra.core.decode.markdown.listItem"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_items",
"domain": {"list": {"variable": "hydra.core.markdown.ListItem"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.List",
"fields": [{"name": "ordered", "term": {"variable": "field_ordered"}}, {"name": "items", "term": {"variable": "field_items"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.List"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.List"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.listItem",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.ListItem"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.ListItem"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.ListItem"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.ListItem"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"list": {"variable": "hydra.core.markdown.Block"}}}},
"type": {"variable": "hydra.core.markdown.ListItem"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"list": {"variable": "hydra.core.markdown.Block"}},
"body": {"wrap": {"typeName": "hydra.core.markdown.ListItem", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Block"}}},
"argument": {"variable": "hydra.core.decode.markdown.block"}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.ListItem"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.paragraph",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Paragraph"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Paragraph"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Paragraph"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Paragraph"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Paragraph"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.Paragraph"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"argument": {"literal": {"string": "content"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_content",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"optional": {"literal": "string"}}}},
"type": {"variable": "hydra.core.markdown.Paragraph"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"optional": {"literal": "string"}}}},
"argument": {"literal": {"string": "anchor"}}}},
"argument": {
"application": {
"function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeMaybe"}, "type": {"literal": "string"}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_anchor",
"domain": {"optional": {"literal": "string"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Paragraph",
"fields": [{"name": "content", "term": {"variable": "field_content"}}, {"name": "anchor", "term": {"variable": "field_anchor"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Paragraph"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Paragraph"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.section",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Section"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Section"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Section"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Section"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Section"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"type": {"variable": "hydra.core.markdown.Section"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.markdown.Heading"}}},
"argument": {"literal": {"string": "heading"}}}},
"argument": {"variable": "hydra.core.decode.markdown.heading"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_heading",
"domain": {"variable": "hydra.core.markdown.Heading"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.Block"}}}},
"type": {"variable": "hydra.core.markdown.Section"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.Block"}}}},
"argument": {"literal": {"string": "content"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Block"}}},
"argument": {"variable": "hydra.core.decode.markdown.block"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_content",
"domain": {"list": {"variable": "hydra.core.markdown.Block"}},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"optional": {"literal": "string"}}}},
"type": {"variable": "hydra.core.markdown.Section"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"optional": {"literal": "string"}}}},
"argument": {"literal": {"string": "anchor"}}}},
"argument": {
"application": {
"function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeMaybe"}, "type": {"literal": "string"}}},
"argument": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"literal": "string"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_anchor",
"domain": {"optional": {"literal": "string"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Section",
"fields": [
{"name": "heading", "term": {"variable": "field_heading"}},
{"name": "content", "term": {"variable": "field_content"}},
{"name": "anchor", "term": {"variable": "field_anchor"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Section"}}}}}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Section"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.table",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Table"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.Table"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Table"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {"literal": {"string": "expected a record of type hydra.core.markdown.Table"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Table"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.TableRow"}}},
"type": {"variable": "hydra.core.markdown.Table"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.markdown.TableRow"}}},
"argument": {"literal": {"string": "header"}}}},
"argument": {"variable": "hydra.core.decode.markdown.tableRow"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_header",
"domain": {"variable": "hydra.core.markdown.TableRow"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"list": {"variable": "hydra.core.markdown.TableRow"}}}},
"type": {"variable": "hydra.core.markdown.Table"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"list": {"variable": "hydra.core.markdown.TableRow"}}}},
"argument": {"literal": {"string": "rows"}}}},
"argument": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.TableRow"}}},
"argument": {"variable": "hydra.core.decode.markdown.tableRow"}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_rows",
"domain": {"list": {"variable": "hydra.core.markdown.TableRow"}},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.markdown.Table",
"fields": [{"name": "header", "term": {"variable": "field_header"}}, {"name": "rows", "term": {"variable": "field_rows"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.Table"}}}}}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.Table"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.tableCell",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.TableCell"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.TableCell"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.TableCell"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.TableCell"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"list": {"variable": "hydra.core.markdown.Inline"}}}},
"type": {"variable": "hydra.core.markdown.TableCell"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"list": {"variable": "hydra.core.markdown.Inline"}},
"body": {"wrap": {"typeName": "hydra.core.markdown.TableCell", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.Inline"}}},
"argument": {"variable": "hydra.core.decode.markdown.inline"}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.TableCell"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.markdown.tableRow",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.TableRow"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.markdown.TableRow"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.TableRow"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.markdown.TableRow"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"list": {"variable": "hydra.core.markdown.TableCell"}}}},
"type": {"variable": "hydra.core.markdown.TableRow"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"list": {"variable": "hydra.core.markdown.TableCell"}},
"body": {"wrap": {"typeName": "hydra.core.markdown.TableRow", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "hydra.core.markdown.TableCell"}}},
"argument": {"variable": "hydra.core.decode.markdown.tableCell"}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.markdown.TableRow"}}}]}}}}}]}