Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 5, column: 12, }, end: Position { line: 5, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "all", span: Span { start: Position { line: 6, column: 5, }, end: Position { line: 6, column: 8, }, }, }, ), Raw( PartRaw { content: "collect", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 12, }, }, }, ), Raw( PartRaw { content: "concatLists", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 16, }, }, }, ), Raw( PartRaw { content: "concatMap", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 14, }, }, }, ), Raw( PartRaw { content: "concatMapStringsSep", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 24, }, }, }, ), Raw( PartRaw { content: "filter", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 11, }, }, }, ), Raw( PartRaw { content: "foldl'", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 11, }, }, }, ), Raw( PartRaw { content: "head", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 9, }, }, }, ), Raw( PartRaw { content: "tail", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 9, }, }, }, ), Raw( PartRaw { content: "isAttrs", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 12, }, }, }, ), Raw( PartRaw { content: "isBool", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 11, }, }, }, ), Raw( PartRaw { content: "isDerivation", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 17, }, }, }, ), Raw( PartRaw { content: "isFunction", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 15, }, }, }, ), Raw( PartRaw { content: "isInt", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 10, }, }, }, ), Raw( PartRaw { content: "isList", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 11, }, }, }, ), Raw( PartRaw { content: "isString", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 13, }, }, }, ), Raw( PartRaw { content: "length", span: Span { start: Position { line: 22, column: 5, }, end: Position { line: 22, column: 11, }, }, }, ), Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 13, }, }, }, ), Raw( PartRaw { content: "optional", span: Span { start: Position { line: 24, column: 5, }, end: Position { line: 24, column: 13, }, }, }, ), Raw( PartRaw { content: "optionals", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 14, }, }, }, ), Raw( PartRaw { content: "take", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 9, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 27, column: 6, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 12, }, end: Position { line: 28, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsets", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 24, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "attrByPath", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 15, }, }, }, ), Raw( PartRaw { content: "optionalAttrs", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 18, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 31, column: 6, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 12, }, end: Position { line: 32, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strings", span: Span { start: Position { line: 32, column: 16, }, end: Position { line: 32, column: 23, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "concatMapStrings", span: Span { start: Position { line: 33, column: 5, }, end: Position { line: 33, column: 21, }, }, }, ), Raw( PartRaw { content: "concatStringsSep", span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 34, column: 21, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 35, column: 6, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 36, column: 12, }, end: Position { line: 36, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 36, column: 16, }, end: Position { line: 36, column: 21, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "mkOptionType", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 17, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 38, column: 6, }, }, }, ), ], target: Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isOption", span: Span { start: Position { line: 50, column: 3, }, end: Position { line: 50, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 50, column: 14, }, end: Position { line: 50, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isType", span: Span { start: Position { line: 50, column: 18, }, end: Position { line: 50, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "option", span: Span { start: Position { line: 50, column: 26, }, end: Position { line: 50, column: 32, }, }, }, ), ], span: Span { start: Position { line: 50, column: 25, }, end: Position { line: 50, column: 33, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 60, column: 3, }, end: Position { line: 60, column: 11, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: RightAt( "attrs", ), arguments: [ FunctionHeadDestructuredArgument { identifier: "default", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 63, column: 15, }, end: Position { line: 63, column: 19, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "defaultText", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 65, column: 19, }, end: Position { line: 65, column: 23, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "example", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 67, column: 15, }, end: Position { line: 67, column: 19, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "description", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 69, column: 19, }, end: Position { line: 69, column: 23, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "relatedPackages", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 71, column: 23, }, end: Position { line: 71, column: 27, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "type", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 73, column: 12, }, end: Position { line: 73, column: 16, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "apply", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 75, column: 13, }, end: Position { line: 75, column: 17, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "internal", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 77, column: 16, }, end: Position { line: 77, column: 20, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "visible", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 79, column: 15, }, end: Position { line: 79, column: 19, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "readOnly", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 81, column: 16, }, end: Position { line: 81, column: 20, }, }, }, ), ), }, ], }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 83, column: 5, }, end: Position { line: 83, column: 10, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 83, column: 16, }, end: Position { line: 83, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "option", span: Span { start: Position { line: 83, column: 25, }, end: Position { line: 83, column: 31, }, }, }, ), ], span: Span { start: Position { line: 83, column: 24, }, end: Position { line: 83, column: 32, }, }, }, ), }, ), ], span: Span { start: Position { line: 83, column: 14, }, end: Position { line: 83, column: 35, }, }, }, ), }, ), span: Span { start: Position { line: 61, column: 5, }, end: Position { line: 83, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkEnableOption", span: Span { start: Position { line: 92, column: 3, }, end: Position { line: 92, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 94, column: 11, }, end: Position { line: 94, column: 19, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 95, column: 5, }, end: Position { line: 95, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 95, column: 15, }, end: Position { line: 95, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 96, column: 5, }, end: Position { line: 96, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 96, column: 15, }, end: Position { line: 96, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 97, column: 5, }, end: Position { line: 97, column: 16, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 98, column: 10, }, end: Position { line: 98, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 98, column: 17, }, end: Position { line: 98, column: 22, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 98, column: 26, }, end: Position { line: 98, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 98, column: 31, }, end: Position { line: 98, column: 36, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 98, column: 41, }, end: Position { line: 98, column: 46, }, }, }, ), ], span: Span { start: Position { line: 98, column: 40, }, end: Position { line: 98, column: 47, }, }, }, ), }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 99, column: 12, }, end: Position { line: 99, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 99, column: 16, }, end: Position { line: 99, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Whether to enable ", span: Span { start: Position { line: 99, column: 23, }, end: Position { line: 99, column: 53, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 99, column: 43, }, end: Position { line: 99, column: 47, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 99, column: 48, }, end: Position { line: 99, column: 52, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ".", span: Span { start: Position { line: 99, column: 23, }, end: Position { line: 99, column: 54, }, }, }, ), ], span: Span { start: Position { line: 99, column: 22, }, end: Position { line: 99, column: 55, }, }, }, ), ], }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "Whether to enable ", span: Span { start: Position { line: 100, column: 13, }, end: Position { line: 100, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 100, column: 33, }, end: Position { line: 100, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: ".", span: Span { start: Position { line: 100, column: 13, }, end: Position { line: 100, column: 39, }, }, }, ), ], span: Span { start: Position { line: 100, column: 12, }, end: Position { line: 100, column: 40, }, }, }, ), span: Span { start: Position { line: 98, column: 7, }, end: Position { line: 100, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 101, column: 5, }, end: Position { line: 101, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 101, column: 12, }, end: Position { line: 101, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 101, column: 16, }, end: Position { line: 101, column: 21, }, }, }, ), Raw( PartRaw { content: "bool", span: Span { start: Position { line: 101, column: 22, }, end: Position { line: 101, column: 26, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 94, column: 20, }, end: Position { line: 102, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 94, column: 5, }, end: Position { line: 102, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkPackageOption", span: Span { start: Position { line: 130, column: 3, }, end: Position { line: 130, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkgs", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "default", default: Some( List( List { elements: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 135, column: 21, }, end: Position { line: 135, column: 25, }, }, }, ), ], span: Span { start: Position { line: 135, column: 19, }, end: Position { line: 135, column: 27, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "example", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 135, column: 39, }, end: Position { line: 135, column: 43, }, }, }, ), ), }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default'", span: Span { start: Position { line: 136, column: 11, }, end: Position { line: 136, column: 19, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 136, column: 26, }, end: Position { line: 136, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "default", span: Span { start: Position { line: 136, column: 33, }, end: Position { line: 136, column: 40, }, }, }, ), ], }, ), span: Span { start: Position { line: 136, column: 25, }, end: Position { line: 136, column: 40, }, }, }, ), then: List( List { elements: [ Identifier( Identifier { id: "default", span: Span { start: Position { line: 136, column: 48, }, end: Position { line: 136, column: 55, }, }, }, ), ], span: Span { start: Position { line: 136, column: 46, }, end: Position { line: 136, column: 57, }, }, }, ), else_: Identifier( Identifier { id: "default", span: Span { start: Position { line: 136, column: 63, }, end: Position { line: 136, column: 70, }, }, }, ), span: Span { start: Position { line: 136, column: 22, }, end: Position { line: 136, column: 70, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 137, column: 10, }, end: Position { line: 137, column: 18, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 138, column: 9, }, end: Position { line: 138, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 138, column: 16, }, end: Position { line: 138, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 138, column: 20, }, end: Position { line: 138, column: 25, }, }, }, ), Raw( PartRaw { content: "package", span: Span { start: Position { line: 138, column: 26, }, end: Position { line: 138, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 139, column: 9, }, end: Position { line: 139, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 139, column: 23, }, end: Position { line: 139, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 139, column: 27, }, end: Position { line: 139, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The ", span: Span { start: Position { line: 139, column: 34, }, end: Position { line: 139, column: 45, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 139, column: 40, }, end: Position { line: 139, column: 44, }, }, }, ), }, ), Raw( PartRaw { content: " package to use.", span: Span { start: Position { line: 139, column: 34, }, end: Position { line: 139, column: 61, }, }, }, ), ], span: Span { start: Position { line: 139, column: 33, }, end: Position { line: 139, column: 62, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 140, column: 9, }, end: Position { line: 140, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrByPath", span: Span { start: Position { line: 140, column: 19, }, end: Position { line: 140, column: 29, }, }, }, ), arguments: [ Identifier( Identifier { id: "default'", span: Span { start: Position { line: 140, column: 30, }, end: Position { line: 140, column: 38, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 141, column: 12, }, end: Position { line: 141, column: 17, }, }, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 141, column: 21, }, end: Position { line: 141, column: 37, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 141, column: 39, }, end: Position { line: 141, column: 40, }, }, }, ), ], span: Span { start: Position { line: 141, column: 38, }, end: Position { line: 141, column: 41, }, }, }, ), Identifier( Identifier { id: "default'", span: Span { start: Position { line: 141, column: 42, }, end: Position { line: 141, column: 50, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " cannot be found in pkgs", span: Span { start: Position { line: 141, column: 19, }, end: Position { line: 141, column: 75, }, }, }, ), ], span: Span { start: Position { line: 141, column: 18, }, end: Position { line: 141, column: 76, }, }, }, ), ], }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 141, column: 78, }, end: Position { line: 141, column: 82, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 142, column: 9, }, end: Position { line: 142, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 142, column: 23, }, end: Position { line: 142, column: 40, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "pkgs.", span: Span { start: Position { line: 142, column: 43, }, end: Position { line: 142, column: 48, }, }, }, ), ], span: Span { start: Position { line: 142, column: 42, }, end: Position { line: 142, column: 49, }, }, }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 142, column: 52, }, end: Position { line: 142, column: 68, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 142, column: 70, }, end: Position { line: 142, column: 71, }, }, }, ), ], span: Span { start: Position { line: 142, column: 69, }, end: Position { line: 142, column: 72, }, }, }, ), Identifier( Identifier { id: "default'", span: Span { start: Position { line: 142, column: 73, }, end: Position { line: 142, column: 81, }, }, }, ), ], }, ), }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "example", span: Span { start: Position { line: 143, column: 14, }, end: Position { line: 143, column: 21, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 143, column: 25, }, end: Position { line: 143, column: 29, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 143, column: 36, }, end: Position { line: 143, column: 43, }, }, }, ), ], span: Span { start: Position { line: 143, column: 35, }, end: Position { line: 143, column: 44, }, }, }, ), else_: Identifier( Identifier { id: "null", span: Span { start: Position { line: 143, column: 50, }, end: Position { line: 143, column: 54, }, }, }, ), span: Span { start: Position { line: 143, column: 11, }, end: Position { line: 143, column: 54, }, }, }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 143, column: 58, }, end: Position { line: 143, column: 75, }, }, }, ), arguments: [ IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 144, column: 15, }, end: Position { line: 144, column: 21, }, }, }, ), arguments: [ Identifier( Identifier { id: "example", span: Span { start: Position { line: 144, column: 22, }, end: Position { line: 144, column: 29, }, }, }, ), ], }, ), then: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "pkgs.", span: Span { start: Position { line: 144, column: 36, }, end: Position { line: 144, column: 41, }, }, }, ), ], span: Span { start: Position { line: 144, column: 35, }, end: Position { line: 144, column: 42, }, }, }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 144, column: 45, }, end: Position { line: 144, column: 61, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 144, column: 63, }, end: Position { line: 144, column: 64, }, }, }, ), ], span: Span { start: Position { line: 144, column: 62, }, end: Position { line: 144, column: 65, }, }, }, ), Identifier( Identifier { id: "example", span: Span { start: Position { line: 144, column: 66, }, end: Position { line: 144, column: 73, }, }, }, ), ], }, ), }, ), else_: Identifier( Identifier { id: "example", span: Span { start: Position { line: 144, column: 79, }, end: Position { line: 144, column: 86, }, }, }, ), span: Span { start: Position { line: 144, column: 12, }, end: Position { line: 144, column: 86, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 137, column: 19, }, end: Position { line: 145, column: 8, }, }, }, ), ], }, ), span: Span { start: Position { line: 136, column: 7, }, end: Position { line: 145, column: 8, }, }, }, ), span: Span { start: Position { line: 135, column: 7, }, end: Position { line: 145, column: 8, }, }, }, ), span: Span { start: Position { line: 134, column: 7, }, end: Position { line: 145, column: 8, }, }, }, ), span: Span { start: Position { line: 132, column: 5, }, end: Position { line: 145, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkSinkUndeclaredOptions", span: Span { start: Position { line: 152, column: 3, }, end: Position { line: 152, column: 26, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 152, column: 36, }, end: Position { line: 152, column: 44, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 153, column: 5, }, end: Position { line: 153, column: 13, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 153, column: 16, }, end: Position { line: 153, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 154, column: 5, }, end: Position { line: 154, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 154, column: 15, }, end: Position { line: 154, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 155, column: 5, }, end: Position { line: 155, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 155, column: 15, }, end: Position { line: 155, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 156, column: 5, }, end: Position { line: 156, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Sink for option definitions.", span: Span { start: Position { line: 156, column: 20, }, end: Position { line: 156, column: 48, }, }, }, ), ], span: Span { start: Position { line: 156, column: 19, }, end: Position { line: 156, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 157, column: 5, }, end: Position { line: 157, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionType", span: Span { start: Position { line: 157, column: 12, }, end: Position { line: 157, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 158, column: 7, }, end: Position { line: 158, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "sink", span: Span { start: Position { line: 158, column: 15, }, end: Position { line: 158, column: 19, }, }, }, ), ], span: Span { start: Position { line: 158, column: 14, }, end: Position { line: 158, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check", span: Span { start: Position { line: 159, column: 7, }, end: Position { line: 159, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: Identifier( Identifier { id: "true", span: Span { start: Position { line: 159, column: 18, }, end: Position { line: 159, column: 22, }, }, }, ), span: Span { start: Position { line: 159, column: 15, }, end: Position { line: 159, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "merge", span: Span { start: Position { line: 160, column: 7, }, end: Position { line: 160, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "loc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: Identifier( Identifier { id: "false", span: Span { start: Position { line: 160, column: 26, }, end: Position { line: 160, column: 31, }, }, }, ), span: Span { start: Position { line: 160, column: 20, }, end: Position { line: 160, column: 31, }, }, }, ), span: Span { start: Position { line: 160, column: 15, }, end: Position { line: 160, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 157, column: 25, }, end: Position { line: 161, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply", span: Span { start: Position { line: 162, column: 5, }, end: Position { line: 162, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 162, column: 16, }, end: Position { line: 162, column: 21, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Option value is not readable because the option is not declared.", span: Span { start: Position { line: 162, column: 23, }, end: Position { line: 162, column: 87, }, }, }, ), ], span: Span { start: Position { line: 162, column: 22, }, end: Position { line: 162, column: 88, }, }, }, ), ], }, ), span: Span { start: Position { line: 162, column: 13, }, end: Position { line: 162, column: 88, }, }, }, ), }, ), ], span: Span { start: Position { line: 152, column: 46, }, end: Position { line: 163, column: 4, }, }, }, ), operator: Update, right: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 163, column: 8, }, end: Position { line: 163, column: 13, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 152, column: 29, }, end: Position { line: 163, column: 14, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mergeDefaultOption", span: Span { start: Position { line: 165, column: 3, }, end: Position { line: 165, column: 21, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "loc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "list", span: Span { start: Position { line: 166, column: 9, }, end: Position { line: 166, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getValues", span: Span { start: Position { line: 166, column: 16, }, end: Position { line: 166, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 166, column: 26, }, end: Position { line: 166, column: 30, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 167, column: 8, }, end: Position { line: 167, column: 14, }, }, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 167, column: 15, }, end: Position { line: 167, column: 19, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 167, column: 23, }, end: Position { line: 167, column: 24, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 167, column: 30, }, end: Position { line: 167, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 167, column: 35, }, end: Position { line: 167, column: 39, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 168, column: 13, }, end: Position { line: 168, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isFunction", span: Span { start: Position { line: 168, column: 17, }, end: Position { line: 168, column: 27, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 168, column: 28, }, end: Position { line: 168, column: 32, }, }, }, ), ], }, ), then: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mergeDefaultOption", span: Span { start: Position { line: 168, column: 41, }, end: Position { line: 168, column: 59, }, }, }, ), arguments: [ Identifier( Identifier { id: "loc", span: Span { start: Position { line: 168, column: 60, }, end: Position { line: 168, column: 63, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 168, column: 65, }, end: Position { line: 168, column: 68, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 168, column: 73, }, end: Position { line: 168, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 168, column: 75, }, end: Position { line: 168, column: 76, }, }, }, ), ], }, ), span: Span { start: Position { line: 168, column: 70, }, end: Position { line: 168, column: 76, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 168, column: 78, }, end: Position { line: 168, column: 82, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 168, column: 38, }, end: Position { line: 168, column: 83, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 169, column: 13, }, end: Position { line: 169, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isList", span: Span { start: Position { line: 169, column: 17, }, end: Position { line: 169, column: 23, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 169, column: 24, }, end: Position { line: 169, column: 28, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 169, column: 34, }, end: Position { line: 169, column: 45, }, }, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 169, column: 46, }, end: Position { line: 169, column: 50, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 170, column: 13, }, end: Position { line: 170, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 170, column: 17, }, end: Position { line: 170, column: 24, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 170, column: 25, }, end: Position { line: 170, column: 29, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl'", span: Span { start: Position { line: 170, column: 35, }, end: Position { line: 170, column: 41, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 170, column: 42, }, end: Position { line: 170, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mergeAttrs", span: Span { start: Position { line: 170, column: 46, }, end: Position { line: 170, column: 56, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 170, column: 57, }, end: Position { line: 170, column: 59, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 170, column: 60, }, end: Position { line: 170, column: 64, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 171, column: 13, }, end: Position { line: 171, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isBool", span: Span { start: Position { line: 171, column: 17, }, end: Position { line: 171, column: 23, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 171, column: 24, }, end: Position { line: 171, column: 28, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl'", span: Span { start: Position { line: 171, column: 34, }, end: Position { line: 171, column: 40, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 171, column: 41, }, end: Position { line: 171, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "or", span: Span { start: Position { line: 171, column: 45, }, end: Position { line: 171, column: 47, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "false", span: Span { start: Position { line: 171, column: 48, }, end: Position { line: 171, column: 53, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 171, column: 54, }, end: Position { line: 171, column: 58, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 172, column: 13, }, end: Position { line: 172, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isString", span: Span { start: Position { line: 172, column: 17, }, end: Position { line: 172, column: 25, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 172, column: 26, }, end: Position { line: 172, column: 30, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 172, column: 36, }, end: Position { line: 172, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatStrings", span: Span { start: Position { line: 172, column: 40, }, end: Position { line: 172, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 172, column: 54, }, end: Position { line: 172, column: 58, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 173, column: 13, }, end: Position { line: 173, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "isInt", span: Span { start: Position { line: 173, column: 17, }, end: Position { line: 173, column: 22, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 173, column: 23, }, end: Position { line: 173, column: 27, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 173, column: 31, }, end: Position { line: 173, column: 34, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 173, column: 39, }, end: Position { line: 173, column: 40, }, }, }, ), operator: EqualTo, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 173, column: 44, }, end: Position { line: 173, column: 48, }, }, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 173, column: 49, }, end: Position { line: 173, column: 53, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 173, column: 36, }, end: Position { line: 173, column: 53, }, }, }, ), Identifier( Identifier { id: "list", span: Span { start: Position { line: 173, column: 55, }, end: Position { line: 173, column: 59, }, }, }, ), ], }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 173, column: 65, }, end: Position { line: 173, column: 69, }, }, }, ), arguments: [ Identifier( Identifier { id: "list", span: Span { start: Position { line: 173, column: 70, }, end: Position { line: 173, column: 74, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 174, column: 10, }, end: Position { line: 174, column: 15, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Cannot merge definitions of `", span: Span { start: Position { line: 174, column: 17, }, end: Position { line: 174, column: 63, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOption", span: Span { start: Position { line: 174, column: 48, }, end: Position { line: 174, column: 58, }, }, }, ), arguments: [ Identifier( Identifier { id: "loc", span: Span { start: Position { line: 174, column: 59, }, end: Position { line: 174, column: 62, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "'. Definition values:", span: Span { start: Position { line: 174, column: 17, }, end: Position { line: 174, column: 84, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showDefs", span: Span { start: Position { line: 174, column: 86, }, end: Position { line: 174, column: 94, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 174, column: 95, }, end: Position { line: 174, column: 99, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 174, column: 16, }, end: Position { line: 174, column: 101, }, }, }, ), ], }, ), span: Span { start: Position { line: 173, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 172, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 171, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 170, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 169, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 168, column: 10, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 167, column: 5, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 166, column: 5, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 165, column: 29, }, end: Position { line: 174, column: 101, }, }, }, ), span: Span { start: Position { line: 165, column: 24, }, end: Position { line: 174, column: 101, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mergeOneOption", span: Span { start: Position { line: 176, column: 3, }, end: Position { line: 176, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mergeUniqueOption", span: Span { start: Position { line: 176, column: 20, }, end: Position { line: 176, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 176, column: 40, }, end: Position { line: 176, column: 47, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 176, column: 50, }, end: Position { line: 176, column: 52, }, }, }, ), }, ), ], span: Span { start: Position { line: 176, column: 38, }, end: Position { line: 176, column: 55, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mergeUniqueOption", span: Span { start: Position { line: 178, column: 3, }, end: Position { line: 178, column: 20, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "message", default: None, }, ], }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "loc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 179, column: 8, }, end: Position { line: 179, column: 14, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 179, column: 15, }, end: Position { line: 179, column: 19, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 179, column: 23, }, end: Position { line: 179, column: 24, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 180, column: 11, }, end: Position { line: 180, column: 15, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 180, column: 16, }, end: Position { line: 180, column: 20, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 180, column: 22, }, end: Position { line: 180, column: 27, }, }, }, ), ], default: None, }, ), else_: Assert( Assert { expression: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 181, column: 17, }, end: Position { line: 181, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 181, column: 24, }, end: Position { line: 181, column: 28, }, }, }, ), ], }, ), operator: GreaterThan, right: Integer( Integer { value: "1", span: Span { start: Position { line: 181, column: 31, }, end: Position { line: 181, column: 32, }, }, }, ), }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 182, column: 7, }, end: Position { line: 182, column: 12, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The option `", span: Span { start: Position { line: 182, column: 14, }, end: Position { line: 182, column: 43, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOption", span: Span { start: Position { line: 182, column: 28, }, end: Position { line: 182, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "loc", span: Span { start: Position { line: 182, column: 39, }, end: Position { line: 182, column: 42, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "' is defined multiple times.\n", span: Span { start: Position { line: 182, column: 14, }, end: Position { line: 182, column: 73, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "message", span: Span { start: Position { line: 182, column: 75, }, end: Position { line: 182, column: 82, }, }, }, ), }, ), Raw( PartRaw { content: "\nDefinition values:", span: Span { start: Position { line: 182, column: 14, }, end: Position { line: 182, column: 103, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showDefs", span: Span { start: Position { line: 182, column: 105, }, end: Position { line: 182, column: 113, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 182, column: 114, }, end: Position { line: 182, column: 118, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 182, column: 13, }, end: Position { line: 182, column: 120, }, }, }, ), ], }, ), span: Span { start: Position { line: 181, column: 10, }, end: Position { line: 182, column: 120, }, }, }, ), span: Span { start: Position { line: 179, column: 5, }, end: Position { line: 182, column: 120, }, }, }, ), span: Span { start: Position { line: 178, column: 41, }, end: Position { line: 182, column: 120, }, }, }, ), span: Span { start: Position { line: 178, column: 36, }, end: Position { line: 182, column: 120, }, }, }, ), span: Span { start: Position { line: 178, column: 23, }, end: Position { line: 182, column: 120, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mergeEqualOption", span: Span { start: Position { line: 185, column: 3, }, end: Position { line: 185, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "loc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "defs", span: Span { start: Position { line: 186, column: 8, }, end: Position { line: 186, column: 12, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 186, column: 16, }, end: Position { line: 186, column: 18, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "abort", span: Span { start: Position { line: 186, column: 24, }, end: Position { line: 186, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "This case should never happen.", span: Span { start: Position { line: 186, column: 31, }, end: Position { line: 186, column: 61, }, }, }, ), ], span: Span { start: Position { line: 186, column: 30, }, end: Position { line: 186, column: 62, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 190, column: 13, }, end: Position { line: 190, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 190, column: 20, }, end: Position { line: 190, column: 24, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 190, column: 28, }, end: Position { line: 190, column: 29, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 190, column: 36, }, end: Position { line: 190, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 190, column: 41, }, end: Position { line: 190, column: 45, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 190, column: 47, }, end: Position { line: 190, column: 52, }, }, }, ), ], default: None, }, ), else_: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl'", span: Span { start: Position { line: 191, column: 11, }, end: Position { line: 191, column: 17, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "first", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "def", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "def", span: Span { start: Position { line: 192, column: 10, }, end: Position { line: 192, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 192, column: 14, }, end: Position { line: 192, column: 19, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "first", span: Span { start: Position { line: 192, column: 23, }, end: Position { line: 192, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 192, column: 29, }, end: Position { line: 192, column: 34, }, }, }, ), ], default: None, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 193, column: 9, }, end: Position { line: 193, column: 14, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The option `", span: Span { start: Position { line: 193, column: 16, }, end: Position { line: 193, column: 45, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOption", span: Span { start: Position { line: 193, column: 30, }, end: Position { line: 193, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "loc", span: Span { start: Position { line: 193, column: 41, }, end: Position { line: 193, column: 44, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "' has conflicting definition values:", span: Span { start: Position { line: 193, column: 16, }, end: Position { line: 193, column: 81, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showDefs", span: Span { start: Position { line: 193, column: 83, }, end: Position { line: 193, column: 91, }, }, }, ), arguments: [ List( List { elements: [ Identifier( Identifier { id: "first", span: Span { start: Position { line: 193, column: 94, }, end: Position { line: 193, column: 99, }, }, }, ), Identifier( Identifier { id: "def", span: Span { start: Position { line: 193, column: 100, }, end: Position { line: 193, column: 103, }, }, }, ), ], span: Span { start: Position { line: 193, column: 92, }, end: Position { line: 193, column: 105, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 193, column: 15, }, end: Position { line: 193, column: 107, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "first", span: Span { start: Position { line: 195, column: 9, }, end: Position { line: 195, column: 14, }, }, }, ), span: Span { start: Position { line: 192, column: 7, }, end: Position { line: 195, column: 14, }, }, }, ), span: Span { start: Position { line: 191, column: 26, }, end: Position { line: 195, column: 14, }, }, }, ), span: Span { start: Position { line: 191, column: 19, }, end: Position { line: 195, column: 14, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 195, column: 17, }, end: Position { line: 195, column: 21, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 195, column: 22, }, end: Position { line: 195, column: 26, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "tail", span: Span { start: Position { line: 195, column: 29, }, end: Position { line: 195, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 195, column: 34, }, end: Position { line: 195, column: 38, }, }, }, ), ], }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 195, column: 41, }, end: Position { line: 195, column: 46, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 190, column: 10, }, end: Position { line: 195, column: 46, }, }, }, ), span: Span { start: Position { line: 186, column: 5, }, end: Position { line: 195, column: 46, }, }, }, ), span: Span { start: Position { line: 185, column: 27, }, end: Position { line: 195, column: 46, }, }, }, ), span: Span { start: Position { line: 185, column: 22, }, end: Position { line: 195, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getValues", span: Span { start: Position { line: 205, column: 3, }, end: Position { line: 205, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 205, column: 15, }, end: Position { line: 205, column: 18, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 205, column: 23, }, end: Position { line: 205, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 205, column: 25, }, end: Position { line: 205, column: 30, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 205, column: 20, }, end: Position { line: 205, column: 30, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getFiles", span: Span { start: Position { line: 215, column: 3, }, end: Position { line: 215, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 215, column: 14, }, end: Position { line: 215, column: 17, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 215, column: 22, }, end: Position { line: 215, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "file", span: Span { start: Position { line: 215, column: 24, }, end: Position { line: 215, column: 28, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 215, column: 19, }, end: Position { line: 215, column: 28, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "optionAttrSetToDocList", span: Span { start: Position { line: 219, column: 3, }, end: Position { line: 219, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionAttrSetToDocList'", span: Span { start: Position { line: 219, column: 28, }, end: Position { line: 219, column: 51, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 219, column: 52, }, end: Position { line: 219, column: 54, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "optionAttrSetToDocList'", span: Span { start: Position { line: 221, column: 3, }, end: Position { line: 221, column: 26, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "prefix", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "options", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 222, column: 5, }, end: Position { line: 222, column: 14, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "opt", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "docOption", span: Span { start: Position { line: 224, column: 9, }, end: Position { line: 224, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 225, column: 11, }, end: Position { line: 225, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 225, column: 17, }, end: Position { line: 225, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 225, column: 21, }, end: Position { line: 225, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 226, column: 11, }, end: Position { line: 226, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOption", span: Span { start: Position { line: 226, column: 18, }, end: Position { line: 226, column: 28, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 226, column: 29, }, end: Position { line: 226, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 226, column: 33, }, end: Position { line: 226, column: 36, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 227, column: 11, }, end: Position { line: 227, column: 22, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 227, column: 25, }, end: Position { line: 227, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 227, column: 29, }, end: Position { line: 227, column: 40, }, }, }, ), ], default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 227, column: 44, }, end: Position { line: 227, column: 48, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "declarations", span: Span { start: Position { line: 228, column: 11, }, end: Position { line: 228, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 228, column: 26, }, end: Position { line: 228, column: 32, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 228, column: 37, }, end: Position { line: 228, column: 38, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "unknownModule", span: Span { start: Position { line: 228, column: 42, }, end: Position { line: 228, column: 55, }, }, }, ), }, ), span: Span { start: Position { line: 228, column: 34, }, end: Position { line: 228, column: 55, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 228, column: 57, }, end: Position { line: 228, column: 60, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "declarations", span: Span { start: Position { line: 228, column: 61, }, end: Position { line: 228, column: 73, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 229, column: 11, }, end: Position { line: 229, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 229, column: 22, }, end: Position { line: 229, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 229, column: 26, }, end: Position { line: 229, column: 34, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 229, column: 38, }, end: Position { line: 229, column: 43, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 230, column: 11, }, end: Position { line: 230, column: 18, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 231, column: 17, }, end: Position { line: 231, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 231, column: 21, }, end: Position { line: 231, column: 28, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 231, column: 32, }, end: Position { line: 231, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 231, column: 36, }, end: Position { line: 231, column: 43, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "shallow", span: Span { start: Position { line: 231, column: 48, }, end: Position { line: 231, column: 55, }, }, }, ), ], span: Span { start: Position { line: 231, column: 47, }, end: Position { line: 231, column: 56, }, }, }, ), }, ), }, ), then: Identifier( Identifier { id: "true", span: Span { start: Position { line: 232, column: 18, }, end: Position { line: 232, column: 22, }, }, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 233, column: 18, }, end: Position { line: 233, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 233, column: 22, }, end: Position { line: 233, column: 29, }, }, }, ), ], default: Some( Identifier( Identifier { id: "true", span: Span { start: Position { line: 233, column: 33, }, end: Position { line: 233, column: 37, }, }, }, ), ), }, ), span: Span { start: Position { line: 231, column: 13, }, end: Position { line: 233, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "readOnly", span: Span { start: Position { line: 234, column: 11, }, end: Position { line: 234, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 234, column: 22, }, end: Position { line: 234, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "readOnly", span: Span { start: Position { line: 234, column: 26, }, end: Position { line: 234, column: 34, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 234, column: 38, }, end: Position { line: 234, column: 43, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 235, column: 11, }, end: Position { line: 235, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 235, column: 18, }, end: Position { line: 235, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 235, column: 22, }, end: Position { line: 235, column: 26, }, }, }, ), Raw( PartRaw { content: "description", span: Span { start: Position { line: 235, column: 27, }, end: Position { line: 235, column: 38, }, }, }, ), ], default: Some( String( String_ { parts: [ Raw( PartRaw { content: "unspecified", span: Span { start: Position { line: 235, column: 43, }, end: Position { line: 235, column: 54, }, }, }, ), ], span: Span { start: Position { line: 235, column: 42, }, end: Position { line: 235, column: 55, }, }, }, ), ), }, ), }, ), ], span: Span { start: Position { line: 224, column: 21, }, end: Position { line: 236, column: 10, }, }, }, ), operator: Update, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 237, column: 12, }, end: Position { line: 237, column: 25, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 237, column: 27, }, end: Position { line: 237, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 237, column: 33, }, end: Position { line: 237, column: 40, }, }, }, ), ], }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 237, column: 44, }, end: Position { line: 237, column: 51, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "scrubOptionValue", span: Span { start: Position { line: 237, column: 54, }, end: Position { line: 237, column: 70, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 237, column: 71, }, end: Position { line: 237, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 237, column: 75, }, end: Position { line: 237, column: 82, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 237, column: 42, }, end: Position { line: 237, column: 85, }, }, }, ), ], }, ), operator: Update, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 238, column: 12, }, end: Position { line: 238, column: 25, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 238, column: 27, }, end: Position { line: 238, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 238, column: 33, }, end: Position { line: 238, column: 40, }, }, }, ), ], }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 238, column: 44, }, end: Position { line: 238, column: 51, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "scrubOptionValue", span: Span { start: Position { line: 238, column: 54, }, end: Position { line: 238, column: 70, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 238, column: 71, }, end: Position { line: 238, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 238, column: 75, }, end: Position { line: 238, column: 82, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 238, column: 42, }, end: Position { line: 238, column: 85, }, }, }, ), ], }, ), operator: Update, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 239, column: 12, }, end: Position { line: 239, column: 25, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 239, column: 27, }, end: Position { line: 239, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 239, column: 33, }, end: Position { line: 239, column: 44, }, }, }, ), ], }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 239, column: 48, }, end: Position { line: 239, column: 55, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 239, column: 58, }, end: Position { line: 239, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 239, column: 62, }, end: Position { line: 239, column: 73, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 239, column: 46, }, end: Position { line: 239, column: 76, }, }, }, ), ], }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 240, column: 12, }, end: Position { line: 240, column: 25, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 240, column: 27, }, end: Position { line: 240, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "relatedPackages", span: Span { start: Position { line: 240, column: 33, }, end: Position { line: 240, column: 48, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 240, column: 52, }, end: Position { line: 240, column: 55, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "relatedPackages", span: Span { start: Position { line: 240, column: 56, }, end: Position { line: 240, column: 71, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 240, column: 75, }, end: Position { line: 240, column: 79, }, }, }, ), }, ), }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "opt", span: Span { start: Position { line: 240, column: 92, }, end: Position { line: 240, column: 95, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "relatedPackages", span: Span { start: Position { line: 240, column: 97, }, end: Position { line: 240, column: 112, }, }, }, ), ], span: Span { start: Position { line: 240, column: 82, }, end: Position { line: 240, column: 113, }, }, }, ), ], span: Span { start: Position { line: 240, column: 81, }, end: Position { line: 240, column: 115, }, }, }, ), ], }, ), }, ), }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "subOptions", span: Span { start: Position { line: 242, column: 9, }, end: Position { line: 242, column: 19, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ss", span: Span { start: Position { line: 243, column: 15, }, end: Position { line: 243, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 243, column: 20, }, end: Position { line: 243, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 243, column: 24, }, end: Position { line: 243, column: 28, }, }, }, ), Raw( PartRaw { content: "getSubOptions", span: Span { start: Position { line: 243, column: 29, }, end: Position { line: 243, column: 42, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 243, column: 43, }, end: Position { line: 243, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 243, column: 47, }, end: Position { line: 243, column: 50, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "ss", span: Span { start: Position { line: 244, column: 17, }, end: Position { line: 244, column: 19, }, }, }, ), operator: NotEqualTo, right: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 244, column: 23, }, end: Position { line: 244, column: 25, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionAttrSetToDocList'", span: Span { start: Position { line: 244, column: 31, }, end: Position { line: 244, column: 54, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 244, column: 55, }, end: Position { line: 244, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 244, column: 59, }, end: Position { line: 244, column: 62, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "ss", span: Span { start: Position { line: 244, column: 63, }, end: Position { line: 244, column: 65, }, }, }, ), ], }, ), else_: List( List { elements: [], span: Span { start: Position { line: 244, column: 71, }, end: Position { line: 244, column: 73, }, }, }, ), span: Span { start: Position { line: 244, column: 14, }, end: Position { line: 244, column: 73, }, }, }, ), span: Span { start: Position { line: 243, column: 11, }, end: Position { line: 244, column: 73, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "subOptionsVisible", span: Span { start: Position { line: 245, column: 9, }, end: Position { line: 245, column: 26, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "docOption", span: Span { start: Position { line: 245, column: 29, }, end: Position { line: 245, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 245, column: 39, }, end: Position { line: 245, column: 46, }, }, }, ), ], default: None, }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 245, column: 50, }, end: Position { line: 245, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 245, column: 54, }, end: Position { line: 245, column: 61, }, }, }, ), ], default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 245, column: 65, }, end: Position { line: 245, column: 69, }, }, }, ), ), }, ), operator: NotEqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "shallow", span: Span { start: Position { line: 245, column: 74, }, end: Position { line: 245, column: 81, }, }, }, ), ], span: Span { start: Position { line: 245, column: 73, }, end: Position { line: 245, column: 82, }, }, }, ), }, ), }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: List( List { elements: [ Identifier( Identifier { id: "docOption", span: Span { start: Position { line: 249, column: 11, }, end: Position { line: 249, column: 20, }, }, }, ), ], span: Span { start: Position { line: 249, column: 9, }, end: Position { line: 249, column: 22, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionals", span: Span { start: Position { line: 249, column: 26, }, end: Position { line: 249, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "subOptionsVisible", span: Span { start: Position { line: 249, column: 36, }, end: Position { line: 249, column: 53, }, }, }, ), Identifier( Identifier { id: "subOptions", span: Span { start: Position { line: 249, column: 54, }, end: Position { line: 249, column: 64, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 223, column: 7, }, end: Position { line: 249, column: 64, }, }, }, ), span: Span { start: Position { line: 222, column: 16, }, end: Position { line: 249, column: 64, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "collect", span: Span { start: Position { line: 249, column: 67, }, end: Position { line: 249, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "isOption", span: Span { start: Position { line: 249, column: 75, }, end: Position { line: 249, column: 83, }, }, }, ), Identifier( Identifier { id: "options", span: Span { start: Position { line: 249, column: 84, }, end: Position { line: 249, column: 91, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 221, column: 37, }, end: Position { line: 249, column: 92, }, }, }, ), span: Span { start: Position { line: 221, column: 29, }, end: Position { line: 249, column: 92, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "scrubOptionValue", span: Span { start: Position { line: 260, column: 3, }, end: Position { line: 260, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isDerivation", span: Span { start: Position { line: 261, column: 8, }, end: Position { line: 261, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 261, column: 21, }, end: Position { line: 261, column: 22, }, }, }, ), ], }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 262, column: 9, }, end: Position { line: 262, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "derivation", span: Span { start: Position { line: 262, column: 17, }, end: Position { line: 262, column: 27, }, }, }, ), ], span: Span { start: Position { line: 262, column: 16, }, end: Position { line: 262, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "drvPath", span: Span { start: Position { line: 262, column: 30, }, end: Position { line: 262, column: 37, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 262, column: 40, }, end: Position { line: 262, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 262, column: 42, }, end: Position { line: 262, column: 46, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "outPath", span: Span { start: Position { line: 262, column: 48, }, end: Position { line: 262, column: 55, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 262, column: 58, }, end: Position { line: 262, column: 59, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 262, column: 60, }, end: Position { line: 262, column: 64, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 262, column: 66, }, end: Position { line: 262, column: 70, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 262, column: 73, }, end: Position { line: 262, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 262, column: 75, }, end: Position { line: 262, column: 79, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 262, column: 7, }, end: Position { line: 262, column: 82, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 263, column: 13, }, end: Position { line: 263, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 263, column: 20, }, end: Position { line: 263, column: 21, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 263, column: 27, }, end: Position { line: 263, column: 30, }, }, }, ), arguments: [ Identifier( Identifier { id: "scrubOptionValue", span: Span { start: Position { line: 263, column: 31, }, end: Position { line: 263, column: 47, }, }, }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 263, column: 48, }, end: Position { line: 263, column: 49, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 264, column: 13, }, end: Position { line: 264, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 264, column: 21, }, end: Position { line: 264, column: 22, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 264, column: 28, }, end: Position { line: 264, column: 36, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "scrubOptionValue", span: Span { start: Position { line: 264, column: 44, }, end: Position { line: 264, column: 60, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 264, column: 61, }, end: Position { line: 264, column: 62, }, }, }, ), ], }, ), span: Span { start: Position { line: 264, column: 41, }, end: Position { line: 264, column: 62, }, }, }, ), span: Span { start: Position { line: 264, column: 38, }, end: Position { line: 264, column: 62, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "removeAttrs", span: Span { start: Position { line: 264, column: 65, }, end: Position { line: 264, column: 76, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 264, column: 77, }, end: Position { line: 264, column: 78, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "_args", span: Span { start: Position { line: 264, column: 81, }, end: Position { line: 264, column: 86, }, }, }, ), ], span: Span { start: Position { line: 264, column: 80, }, end: Position { line: 264, column: 87, }, }, }, ), ], span: Span { start: Position { line: 264, column: 79, }, end: Position { line: 264, column: 88, }, }, }, ), ], }, ), ], }, ), else_: Identifier( Identifier { id: "x", span: Span { start: Position { line: 265, column: 10, }, end: Position { line: 265, column: 11, }, }, }, ), span: Span { start: Position { line: 264, column: 10, }, end: Position { line: 265, column: 11, }, }, }, ), span: Span { start: Position { line: 263, column: 10, }, end: Position { line: 265, column: 11, }, }, }, ), span: Span { start: Position { line: 261, column: 5, }, end: Position { line: 265, column: 11, }, }, }, ), span: Span { start: Position { line: 260, column: 22, }, end: Position { line: 265, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "literalExpression", span: Span { start: Position { line: 273, column: 3, }, end: Position { line: 273, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "text", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 274, column: 10, }, end: Position { line: 274, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "text", span: Span { start: Position { line: 274, column: 19, }, end: Position { line: 274, column: 23, }, }, }, ), ], }, ), span: Span { start: Position { line: 274, column: 8, }, end: Position { line: 274, column: 23, }, }, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 274, column: 29, }, end: Position { line: 274, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "literalExpression expects a string.", span: Span { start: Position { line: 274, column: 36, }, end: Position { line: 274, column: 71, }, }, }, ), ], span: Span { start: Position { line: 274, column: 35, }, end: Position { line: 274, column: 72, }, }, }, ), ], }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 275, column: 12, }, end: Position { line: 275, column: 17, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "literalExpression", span: Span { start: Position { line: 275, column: 21, }, end: Position { line: 275, column: 38, }, }, }, ), ], span: Span { start: Position { line: 275, column: 20, }, end: Position { line: 275, column: 39, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 275, column: 49, }, end: Position { line: 275, column: 53, }, }, }, ), ], span: Span { start: Position { line: 275, column: 11, }, end: Position { line: 275, column: 54, }, }, }, ), ], span: Span { start: Position { line: 275, column: 10, }, end: Position { line: 275, column: 56, }, }, }, ), span: Span { start: Position { line: 274, column: 5, }, end: Position { line: 275, column: 56, }, }, }, ), span: Span { start: Position { line: 273, column: 23, }, end: Position { line: 275, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "literalExample", span: Span { start: Position { line: 277, column: 3, }, end: Position { line: 277, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 277, column: 20, }, end: Position { line: 277, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "warn", span: Span { start: Position { line: 277, column: 24, }, end: Position { line: 277, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "literalExample is deprecated, use literalExpression instead, or use literalDocBook for a non-Nix description.", span: Span { start: Position { line: 277, column: 30, }, end: Position { line: 277, column: 139, }, }, }, ), ], span: Span { start: Position { line: 277, column: 29, }, end: Position { line: 277, column: 140, }, }, }, ), Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 277, column: 141, }, end: Position { line: 277, column: 158, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "literalDocBook", span: Span { start: Position { line: 284, column: 3, }, end: Position { line: 284, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "text", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 285, column: 10, }, end: Position { line: 285, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "text", span: Span { start: Position { line: 285, column: 19, }, end: Position { line: 285, column: 23, }, }, }, ), ], }, ), span: Span { start: Position { line: 285, column: 8, }, end: Position { line: 285, column: 23, }, }, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 285, column: 29, }, end: Position { line: 285, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "literalDocBook expects a string.", span: Span { start: Position { line: 285, column: 36, }, end: Position { line: 285, column: 68, }, }, }, ), ], span: Span { start: Position { line: 285, column: 35, }, end: Position { line: 285, column: 69, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 287, column: 7, }, end: Position { line: 287, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "warnIf", span: Span { start: Position { line: 287, column: 11, }, end: Position { line: 287, column: 17, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 287, column: 19, }, end: Position { line: 287, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isInOldestRelease", span: Span { start: Position { line: 287, column: 23, }, end: Position { line: 287, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "2211", span: Span { start: Position { line: 287, column: 41, }, end: Position { line: 287, column: 45, }, }, }, ), ], }, ), String( String_ { parts: [ Raw( PartRaw { content: "literalDocBook is deprecated, use literalMD instead", span: Span { start: Position { line: 288, column: 10, }, end: Position { line: 288, column: 61, }, }, }, ), ], span: Span { start: Position { line: 288, column: 9, }, end: Position { line: 288, column: 62, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 289, column: 11, }, end: Position { line: 289, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "literalDocBook", span: Span { start: Position { line: 289, column: 20, }, end: Position { line: 289, column: 34, }, }, }, ), ], span: Span { start: Position { line: 289, column: 19, }, end: Position { line: 289, column: 35, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 289, column: 45, }, end: Position { line: 289, column: 49, }, }, }, ), ], span: Span { start: Position { line: 289, column: 10, }, end: Position { line: 289, column: 50, }, }, }, ), ], span: Span { start: Position { line: 289, column: 9, }, end: Position { line: 289, column: 52, }, }, }, ), ], }, ), span: Span { start: Position { line: 285, column: 5, }, end: Position { line: 289, column: 52, }, }, }, ), span: Span { start: Position { line: 284, column: 20, }, end: Position { line: 289, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 294, column: 3, }, end: Position { line: 294, column: 8, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "text", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 295, column: 10, }, end: Position { line: 295, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "text", span: Span { start: Position { line: 295, column: 19, }, end: Position { line: 295, column: 23, }, }, }, ), ], }, ), span: Span { start: Position { line: 295, column: 8, }, end: Position { line: 295, column: 23, }, }, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 295, column: 29, }, end: Position { line: 295, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "mdDoc expects a string.", span: Span { start: Position { line: 295, column: 36, }, end: Position { line: 295, column: 59, }, }, }, ), ], span: Span { start: Position { line: 295, column: 35, }, end: Position { line: 295, column: 60, }, }, }, ), ], }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 296, column: 12, }, end: Position { line: 296, column: 17, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 296, column: 21, }, end: Position { line: 296, column: 26, }, }, }, ), ], span: Span { start: Position { line: 296, column: 20, }, end: Position { line: 296, column: 27, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 296, column: 37, }, end: Position { line: 296, column: 41, }, }, }, ), ], span: Span { start: Position { line: 296, column: 11, }, end: Position { line: 296, column: 42, }, }, }, ), ], span: Span { start: Position { line: 296, column: 10, }, end: Position { line: 296, column: 44, }, }, }, ), span: Span { start: Position { line: 295, column: 5, }, end: Position { line: 296, column: 44, }, }, }, ), span: Span { start: Position { line: 294, column: 11, }, end: Position { line: 296, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "literalMD", span: Span { start: Position { line: 302, column: 3, }, end: Position { line: 302, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "text", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 303, column: 10, }, end: Position { line: 303, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "text", span: Span { start: Position { line: 303, column: 19, }, end: Position { line: 303, column: 23, }, }, }, ), ], }, ), span: Span { start: Position { line: 303, column: 8, }, end: Position { line: 303, column: 23, }, }, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 303, column: 29, }, end: Position { line: 303, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "literalMD expects a string.", span: Span { start: Position { line: 303, column: 36, }, end: Position { line: 303, column: 63, }, }, }, ), ], span: Span { start: Position { line: 303, column: 35, }, end: Position { line: 303, column: 64, }, }, }, ), ], }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 304, column: 12, }, end: Position { line: 304, column: 17, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "literalMD", span: Span { start: Position { line: 304, column: 21, }, end: Position { line: 304, column: 30, }, }, }, ), ], span: Span { start: Position { line: 304, column: 20, }, end: Position { line: 304, column: 31, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 304, column: 41, }, end: Position { line: 304, column: 45, }, }, }, ), ], span: Span { start: Position { line: 304, column: 11, }, end: Position { line: 304, column: 46, }, }, }, ), ], span: Span { start: Position { line: 304, column: 10, }, end: Position { line: 304, column: 48, }, }, }, ), span: Span { start: Position { line: 303, column: 5, }, end: Position { line: 304, column: 48, }, }, }, ), span: Span { start: Position { line: 302, column: 15, }, end: Position { line: 304, column: 48, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "showOption", span: Span { start: Position { line: 322, column: 3, }, end: Position { line: 322, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "parts", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "escapeOptionPart", span: Span { start: Position { line: 323, column: 5, }, end: Position { line: 323, column: 21, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "part", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "specialIdentifiers", span: Span { start: Position { line: 327, column: 9, }, end: Position { line: 327, column: 27, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 328, column: 12, }, end: Position { line: 328, column: 18, }, }, }, ), ], span: Span { start: Position { line: 328, column: 11, }, end: Position { line: 328, column: 19, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "*", span: Span { start: Position { line: 329, column: 12, }, end: Position { line: 329, column: 13, }, }, }, ), ], span: Span { start: Position { line: 329, column: 11, }, end: Position { line: 329, column: 14, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 330, column: 12, }, end: Position { line: 330, column: 27, }, }, }, ), ], span: Span { start: Position { line: 330, column: 11, }, end: Position { line: 330, column: 28, }, }, }, ), ], span: Span { start: Position { line: 327, column: 30, }, end: Position { line: 331, column: 10, }, }, }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 332, column: 13, }, end: Position { line: 332, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 332, column: 22, }, end: Position { line: 332, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "part", span: Span { start: Position { line: 332, column: 27, }, end: Position { line: 332, column: 31, }, }, }, ), Identifier( Identifier { id: "specialIdentifiers", span: Span { start: Position { line: 332, column: 32, }, end: Position { line: 332, column: 50, }, }, }, ), ], }, ), then: Identifier( Identifier { id: "part", span: Span { start: Position { line: 333, column: 15, }, end: Position { line: 333, column: 19, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 334, column: 15, }, end: Position { line: 334, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strings", span: Span { start: Position { line: 334, column: 19, }, end: Position { line: 334, column: 26, }, }, }, ), Raw( PartRaw { content: "escapeNixIdentifier", span: Span { start: Position { line: 334, column: 27, }, end: Position { line: 334, column: 46, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "part", span: Span { start: Position { line: 334, column: 47, }, end: Position { line: 334, column: 51, }, }, }, ), ], }, ), span: Span { start: Position { line: 332, column: 10, }, end: Position { line: 334, column: 51, }, }, }, ), span: Span { start: Position { line: 324, column: 7, }, end: Position { line: 334, column: 51, }, }, }, ), span: Span { start: Position { line: 323, column: 24, }, end: Position { line: 334, column: 51, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 335, column: 9, }, end: Position { line: 335, column: 25, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 335, column: 27, }, end: Position { line: 335, column: 28, }, }, }, ), ], span: Span { start: Position { line: 335, column: 26, }, end: Position { line: 335, column: 29, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 335, column: 32, }, end: Position { line: 335, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "escapeOptionPart", span: Span { start: Position { line: 335, column: 36, }, end: Position { line: 335, column: 52, }, }, }, ), Identifier( Identifier { id: "parts", span: Span { start: Position { line: 335, column: 53, }, end: Position { line: 335, column: 58, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 322, column: 23, }, end: Position { line: 335, column: 59, }, }, }, ), span: Span { start: Position { line: 322, column: 16, }, end: Position { line: 335, column: 59, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "showFiles", span: Span { start: Position { line: 336, column: 3, }, end: Position { line: 336, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "files", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 336, column: 22, }, end: Position { line: 336, column: 38, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " and ", span: Span { start: Position { line: 336, column: 40, }, end: Position { line: 336, column: 45, }, }, }, ), ], span: Span { start: Position { line: 336, column: 39, }, end: Position { line: 336, column: 46, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 336, column: 48, }, end: Position { line: 336, column: 51, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "`", span: Span { start: Position { line: 336, column: 57, }, end: Position { line: 336, column: 62, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "f", span: Span { start: Position { line: 336, column: 60, }, end: Position { line: 336, column: 61, }, }, }, ), }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 336, column: 57, }, end: Position { line: 336, column: 63, }, }, }, ), ], span: Span { start: Position { line: 336, column: 56, }, end: Position { line: 336, column: 64, }, }, }, ), span: Span { start: Position { line: 336, column: 53, }, end: Position { line: 336, column: 64, }, }, }, ), Identifier( Identifier { id: "files", span: Span { start: Position { line: 336, column: 66, }, end: Position { line: 336, column: 71, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 336, column: 15, }, end: Position { line: 336, column: 72, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "showDefs", span: Span { start: Position { line: 338, column: 3, }, end: Position { line: 338, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStrings", span: Span { start: Position { line: 338, column: 20, }, end: Position { line: 338, column: 36, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "def", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "prettyEval", span: Span { start: Position { line: 341, column: 7, }, end: Position { line: 341, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 341, column: 20, }, end: Position { line: 341, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "tryEval", span: Span { start: Position { line: 341, column: 29, }, end: Position { line: 341, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 342, column: 10, }, end: Position { line: 342, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generators", span: Span { start: Position { line: 342, column: 14, }, end: Position { line: 342, column: 24, }, }, }, ), Raw( PartRaw { content: "toPretty", span: Span { start: Position { line: 342, column: 25, }, end: Position { line: 342, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 342, column: 34, }, end: Position { line: 342, column: 37, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 343, column: 12, }, end: Position { line: 343, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generators", span: Span { start: Position { line: 343, column: 16, }, end: Position { line: 343, column: 26, }, }, }, ), Raw( PartRaw { content: "withRecursion", span: Span { start: Position { line: 343, column: 27, }, end: Position { line: 343, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "depthLimit", span: Span { start: Position { line: 343, column: 43, }, end: Position { line: 343, column: 53, }, }, }, ), ], to: Integer( Integer { value: "10", span: Span { start: Position { line: 343, column: 56, }, end: Position { line: 343, column: 58, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "throwOnDepthLimit", span: Span { start: Position { line: 343, column: 60, }, end: Position { line: 343, column: 77, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 343, column: 80, }, end: Position { line: 343, column: 85, }, }, }, ), }, ), ], span: Span { start: Position { line: 343, column: 41, }, end: Position { line: 343, column: 88, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "def", span: Span { start: Position { line: 343, column: 89, }, end: Position { line: 343, column: 92, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 343, column: 93, }, end: Position { line: 343, column: 98, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 345, column: 7, }, end: Position { line: 345, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 345, column: 15, }, end: Position { line: 345, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 345, column: 28, }, end: Position { line: 345, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 345, column: 35, }, end: Position { line: 345, column: 36, }, }, }, ), ], }, ), span: Span { start: Position { line: 345, column: 26, }, end: Position { line: 345, column: 36, }, }, }, ), span: Span { start: Position { line: 345, column: 23, }, end: Position { line: 345, column: 36, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 345, column: 39, }, end: Position { line: 345, column: 47, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "split", span: Span { start: Position { line: 345, column: 48, }, end: Position { line: 345, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 345, column: 55, }, end: Position { line: 345, column: 57, }, }, }, ), ], span: Span { start: Position { line: 345, column: 54, }, end: Position { line: 345, column: 58, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "prettyEval", span: Span { start: Position { line: 345, column: 59, }, end: Position { line: 345, column: 69, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 345, column: 70, }, end: Position { line: 345, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 347, column: 7, }, end: Position { line: 347, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 347, column: 15, }, end: Position { line: 347, column: 31, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n ", span: Span { start: Position { line: 347, column: 33, }, end: Position { line: 347, column: 39, }, }, }, ), ], span: Span { start: Position { line: 347, column: 32, }, end: Position { line: 347, column: 40, }, }, }, ), BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "take", span: Span { start: Position { line: 347, column: 42, }, end: Position { line: 347, column: 46, }, }, }, ), arguments: [ Integer( Integer { value: "5", span: Span { start: Position { line: 347, column: 47, }, end: Position { line: 347, column: 48, }, }, }, ), Identifier( Identifier { id: "lines", span: Span { start: Position { line: 347, column: 49, }, end: Position { line: 347, column: 54, }, }, }, ), ], }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 347, column: 58, }, end: Position { line: 347, column: 66, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 347, column: 68, }, end: Position { line: 347, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "lines", span: Span { start: Position { line: 347, column: 75, }, end: Position { line: 347, column: 80, }, }, }, ), ], }, ), operator: GreaterThan, right: Integer( Integer { value: "5", span: Span { start: Position { line: 347, column: 83, }, end: Position { line: 347, column: 84, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "...", span: Span { start: Position { line: 347, column: 87, }, end: Position { line: 347, column: 90, }, }, }, ), ], span: Span { start: Position { line: 347, column: 86, }, end: Position { line: 347, column: 91, }, }, }, ), ], }, ), }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "result", span: Span { start: Position { line: 348, column: 7, }, end: Position { line: 348, column: 13, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "prettyEval", span: Span { start: Position { line: 350, column: 14, }, end: Position { line: 350, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "success", span: Span { start: Position { line: 350, column: 25, }, end: Position { line: 350, column: 32, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 350, column: 12, }, end: Position { line: 350, column: 32, }, }, }, ), then: String( String_ { parts: [], span: Span { start: Position { line: 350, column: 38, }, end: Position { line: 350, column: 40, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 352, column: 17, }, end: Position { line: 352, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "lines", span: Span { start: Position { line: 352, column: 24, }, end: Position { line: 352, column: 29, }, }, }, ), ], }, ), operator: GreaterThan, right: Integer( Integer { value: "1", span: Span { start: Position { line: 352, column: 32, }, end: Position { line: 352, column: 33, }, }, }, ), }, ), then: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: ":\n ", span: Span { start: Position { line: 352, column: 40, }, end: Position { line: 352, column: 47, }, }, }, ), ], span: Span { start: Position { line: 352, column: 39, }, end: Position { line: 352, column: 48, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "value", span: Span { start: Position { line: 352, column: 51, }, end: Position { line: 352, column: 56, }, }, }, ), }, ), else_: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: ": ", span: Span { start: Position { line: 353, column: 15, }, end: Position { line: 353, column: 17, }, }, }, ), ], span: Span { start: Position { line: 353, column: 14, }, end: Position { line: 353, column: 18, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "value", span: Span { start: Position { line: 353, column: 21, }, end: Position { line: 353, column: 26, }, }, }, ), }, ), span: Span { start: Position { line: 352, column: 14, }, end: Position { line: 353, column: 26, }, }, }, ), span: Span { start: Position { line: 350, column: 9, }, end: Position { line: 353, column: 26, }, }, }, ), }, ), ], target: String( String_ { parts: [ Raw( PartRaw { content: "\n- In `", span: Span { start: Position { line: 354, column: 9, }, end: Position { line: 354, column: 28, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "def", span: Span { start: Position { line: 354, column: 19, }, end: Position { line: 354, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "file", span: Span { start: Position { line: 354, column: 23, }, end: Position { line: 354, column: 27, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 354, column: 9, }, end: Position { line: 354, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "result", span: Span { start: Position { line: 354, column: 31, }, end: Position { line: 354, column: 37, }, }, }, ), }, ), ], span: Span { start: Position { line: 354, column: 8, }, end: Position { line: 354, column: 39, }, }, }, ), span: Span { start: Position { line: 339, column: 5, }, end: Position { line: 354, column: 39, }, }, }, ), span: Span { start: Position { line: 338, column: 38, }, end: Position { line: 354, column: 39, }, }, }, ), Identifier( Identifier { id: "defs", span: Span { start: Position { line: 355, column: 5, }, end: Position { line: 355, column: 9, }, }, }, ), ], }, ), span: Span { start: Position { line: 338, column: 14, }, end: Position { line: 355, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "showOptionWithDefLocs", span: Span { start: Position { line: 357, column: 3, }, end: Position { line: 357, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "opt", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 358, column: 1, }, end: Position { line: 358, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOption", span: Span { start: Position { line: 358, column: 9, }, end: Position { line: 358, column: 19, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 358, column: 20, }, end: Position { line: 358, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "loc", span: Span { start: Position { line: 358, column: 24, }, end: Position { line: 358, column: 27, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: ", with values defined in:\n", span: Span { start: Position { line: 358, column: 1, }, end: Position { line: 359, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 359, column: 9, }, end: Position { line: 359, column: 28, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 359, column: 30, }, end: Position { line: 359, column: 32, }, }, }, ), ], span: Span { start: Position { line: 359, column: 29, }, end: Position { line: 359, column: 33, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "defFile", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: " - ", span: Span { start: Position { line: 359, column: 45, }, end: Position { line: 359, column: 59, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "defFile", span: Span { start: Position { line: 359, column: 51, }, end: Position { line: 359, column: 58, }, }, }, ), }, ), ], span: Span { start: Position { line: 359, column: 44, }, end: Position { line: 359, column: 60, }, }, }, ), span: Span { start: Position { line: 359, column: 35, }, end: Position { line: 359, column: 60, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 359, column: 62, }, end: Position { line: 359, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "files", span: Span { start: Position { line: 359, column: 66, }, end: Position { line: 359, column: 71, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 358, column: 1, }, end: Position { line: 360, column: 5, }, }, }, ), ], span: Span { start: Position { line: 357, column: 32, }, end: Position { line: 360, column: 7, }, }, }, ), span: Span { start: Position { line: 357, column: 27, }, end: Position { line: 360, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unknownModule", span: Span { start: Position { line: 362, column: 3, }, end: Position { line: 362, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 362, column: 20, }, end: Position { line: 362, column: 34, }, }, }, ), ], span: Span { start: Position { line: 362, column: 19, }, end: Position { line: 362, column: 35, }, }, }, ), }, ), ], span: Span { start: Position { line: 40, column: 1, }, end: Position { line: 364, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 364, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 364, column: 2, }, }, }, )