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: "builtins", span: Span { start: Position { line: 5, column: 12, }, end: Position { line: 5, column: 20, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 5, column: 22, }, end: Position { line: 5, column: 26, }, }, }, ), Raw( PartRaw { content: "tail", span: Span { start: Position { line: 5, column: 27, }, end: Position { line: 5, column: 31, }, }, }, ), Raw( PartRaw { content: "length", span: Span { start: Position { line: 5, column: 32, }, end: Position { line: 5, column: 38, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 5, column: 39, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 6, column: 12, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "trivial", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 23, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "id", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 27, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 6, column: 28, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 12, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strings", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 23, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "concatStringsSep", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 41, }, }, }, ), Raw( PartRaw { content: "concatMapStringsSep", span: Span { start: Position { line: 7, column: 42, }, end: Position { line: 7, column: 61, }, }, }, ), Raw( PartRaw { content: "escapeNixIdentifier", span: Span { start: Position { line: 7, column: 62, }, end: Position { line: 7, column: 81, }, }, }, ), Raw( PartRaw { content: "sanitizeDerivationName", span: Span { start: Position { line: 7, column: 82, }, end: Position { line: 7, column: 104, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 7, column: 105, }, }, }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 8, column: 12, }, end: Position { line: 8, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lists", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 21, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "foldr", span: Span { start: Position { line: 8, column: 23, }, end: Position { line: 8, column: 28, }, }, }, ), Raw( PartRaw { content: "foldl'", span: Span { start: Position { line: 8, column: 29, }, end: Position { line: 8, column: 35, }, }, }, ), Raw( PartRaw { content: "concatMap", span: Span { start: Position { line: 8, column: 36, }, end: Position { line: 8, column: 45, }, }, }, ), Raw( PartRaw { content: "concatLists", span: Span { start: Position { line: 8, column: 46, }, end: Position { line: 8, column: 57, }, }, }, ), Raw( PartRaw { content: "elemAt", span: Span { start: Position { line: 8, column: 58, }, end: Position { line: 8, column: 64, }, }, }, ), Raw( PartRaw { content: "all", span: Span { start: Position { line: 8, column: 65, }, end: Position { line: 8, column: 68, }, }, }, ), Raw( PartRaw { content: "partition", span: Span { start: Position { line: 8, column: 69, }, end: Position { line: 8, column: 78, }, }, }, ), Raw( PartRaw { content: "groupBy", span: Span { start: Position { line: 8, column: 79, }, end: Position { line: 8, column: 86, }, }, }, ), Raw( PartRaw { content: "take", span: Span { start: Position { line: 8, column: 87, }, end: Position { line: 8, column: 91, }, }, }, ), Raw( PartRaw { content: "foldl", span: Span { start: Position { line: 8, column: 92, }, end: Position { line: 8, column: 97, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 8, column: 98, }, }, }, ), ], target: Map( Map { recursive: true, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 12, column: 12, }, end: Position { line: 12, column: 20, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "attrNames", span: Span { start: Position { line: 12, column: 22, }, end: Position { line: 12, column: 31, }, }, }, ), Raw( PartRaw { content: "listToAttrs", span: Span { start: Position { line: 12, column: 32, }, end: Position { line: 12, column: 43, }, }, }, ), Raw( PartRaw { content: "hasAttr", span: Span { start: Position { line: 12, column: 44, }, end: Position { line: 12, column: 51, }, }, }, ), Raw( PartRaw { content: "isAttrs", span: Span { start: Position { line: 12, column: 52, }, end: Position { line: 12, column: 59, }, }, }, ), Raw( PartRaw { content: "getAttr", span: Span { start: Position { line: 12, column: 60, }, end: Position { line: 12, column: 67, }, }, }, ), ], span: Span { start: Position { line: 11, column: 6, }, end: Position { line: 12, column: 68, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrByPath", span: Span { start: Position { line: 24, column: 3, }, end: Position { line: 24, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrPath", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "default", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "e", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attr", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 25, column: 16, }, end: Position { line: 25, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 25, column: 21, }, end: Position { line: 25, column: 29, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 27, column: 10, }, end: Position { line: 27, column: 18, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 27, column: 22, }, end: Position { line: 27, column: 24, }, }, }, ), }, ), then: Identifier( Identifier { id: "e", span: Span { start: Position { line: 27, column: 30, }, end: Position { line: 27, column: 31, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "e", span: Span { start: Position { line: 28, column: 15, }, end: Position { line: 28, column: 16, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 25, }, }, }, ), }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrByPath", span: Span { start: Position { line: 29, column: 12, }, end: Position { line: 29, column: 22, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "tail", span: Span { start: Position { line: 29, column: 24, }, end: Position { line: 29, column: 28, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 29, column: 29, }, end: Position { line: 29, column: 37, }, }, }, ), ], }, ), Identifier( Identifier { id: "default", span: Span { start: Position { line: 29, column: 39, }, end: Position { line: 29, column: 46, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "e", span: Span { start: Position { line: 29, column: 47, }, end: Position { line: 29, column: 48, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 29, column: 51, }, end: Position { line: 29, column: 55, }, }, }, ), }, ), ], default: None, }, ), ], }, ), else_: Identifier( Identifier { id: "default", span: Span { start: Position { line: 30, column: 12, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 28, column: 12, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 24, column: 35, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 24, column: 26, }, end: Position { line: 30, column: 19, }, }, }, ), span: Span { start: Position { line: 24, column: 16, }, end: Position { line: 30, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hasAttrByPath", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrPath", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "e", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attr", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 43, column: 16, }, end: Position { line: 43, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 29, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 45, column: 10, }, end: Position { line: 45, column: 18, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 45, column: 22, }, end: Position { line: 45, column: 24, }, }, }, ), }, ), then: Identifier( Identifier { id: "true", span: Span { start: Position { line: 45, column: 30, }, end: Position { line: 45, column: 34, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "e", span: Span { start: Position { line: 46, column: 15, }, end: Position { line: 46, column: 16, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 46, column: 25, }, }, }, ), }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hasAttrByPath", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 25, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "tail", span: Span { start: Position { line: 47, column: 27, }, end: Position { line: 47, column: 31, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 47, column: 32, }, end: Position { line: 47, column: 40, }, }, }, ), ], }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "e", span: Span { start: Position { line: 47, column: 42, }, end: Position { line: 47, column: 43, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 47, column: 46, }, end: Position { line: 47, column: 50, }, }, }, ), }, ), ], default: None, }, ), ], }, ), else_: Identifier( Identifier { id: "false", span: Span { start: Position { line: 48, column: 12, }, end: Position { line: 48, column: 17, }, }, }, ), span: Span { start: Position { line: 46, column: 12, }, end: Position { line: 48, column: 17, }, }, }, ), span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 48, column: 17, }, }, }, ), span: Span { start: Position { line: 43, column: 5, }, end: Position { line: 48, column: 17, }, }, }, ), span: Span { start: Position { line: 42, column: 29, }, end: Position { line: 48, column: 17, }, }, }, ), span: Span { start: Position { line: 42, column: 19, }, end: Position { line: 48, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "setAttrByPath", span: Span { start: Position { line: 57, column: 3, }, end: Position { line: 57, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrPath", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "len", span: Span { start: Position { line: 59, column: 7, }, end: Position { line: 59, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 59, column: 13, }, end: Position { line: 59, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 59, column: 20, }, end: Position { line: 59, column: 28, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "atDepth", span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 60, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "n", span: Span { start: Position { line: 61, column: 12, }, end: Position { line: 61, column: 13, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "len", span: Span { start: Position { line: 61, column: 17, }, end: Position { line: 61, column: 20, }, }, }, ), }, ), then: Identifier( Identifier { id: "value", span: Span { start: Position { line: 62, column: 14, }, end: Position { line: 62, column: 19, }, }, }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "elemAt", span: Span { start: Position { line: 63, column: 18, }, end: Position { line: 63, column: 24, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 63, column: 25, }, end: Position { line: 63, column: 33, }, }, }, ), Identifier( Identifier { id: "n", span: Span { start: Position { line: 63, column: 34, }, end: Position { line: 63, column: 35, }, }, }, ), ], }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "atDepth", span: Span { start: Position { line: 63, column: 39, }, end: Position { line: 63, column: 46, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "n", span: Span { start: Position { line: 63, column: 48, }, end: Position { line: 63, column: 49, }, }, }, ), operator: Addition, right: Integer( Integer { value: "1", span: Span { start: Position { line: 63, column: 52, }, end: Position { line: 63, column: 53, }, }, }, ), }, ), ], }, ), }, ), ], span: Span { start: Position { line: 63, column: 14, }, end: Position { line: 63, column: 57, }, }, }, ), span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 63, column: 57, }, }, }, ), span: Span { start: Position { line: 60, column: 17, }, end: Position { line: 63, column: 57, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "atDepth", span: Span { start: Position { line: 64, column: 8, }, end: Position { line: 64, column: 15, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 64, column: 16, }, end: Position { line: 64, column: 17, }, }, }, ), ], }, ), span: Span { start: Position { line: 58, column: 5, }, end: Position { line: 64, column: 17, }, }, }, ), span: Span { start: Position { line: 57, column: 29, }, end: Position { line: 64, column: 17, }, }, }, ), span: Span { start: Position { line: 57, column: 19, }, end: Position { line: 64, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getAttrFromPath", span: Span { start: Position { line: 76, column: 3, }, end: Position { line: 76, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrPath", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "errorMsg", span: Span { start: Position { line: 77, column: 9, }, end: Position { line: 77, column: 17, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "cannot find attribute `", span: Span { start: Position { line: 77, column: 21, }, end: Position { line: 77, column: 44, }, }, }, ), ], span: Span { start: Position { line: 77, column: 20, }, end: Position { line: 77, column: 45, }, }, }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 77, column: 48, }, end: Position { line: 77, column: 64, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 77, column: 66, }, end: Position { line: 77, column: 67, }, }, }, ), ], span: Span { start: Position { line: 77, column: 65, }, end: Position { line: 77, column: 68, }, }, }, ), Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 77, column: 69, }, end: Position { line: 77, column: 77, }, }, }, ), ], }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "'", span: Span { start: Position { line: 77, column: 81, }, end: Position { line: 77, column: 82, }, }, }, ), ], span: Span { start: Position { line: 77, column: 80, }, end: Position { line: 77, column: 83, }, }, }, ), }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrByPath", span: Span { start: Position { line: 78, column: 8, }, end: Position { line: 78, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 78, column: 19, }, end: Position { line: 78, column: 27, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "abort", span: Span { start: Position { line: 78, column: 29, }, end: Position { line: 78, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "errorMsg", span: Span { start: Position { line: 78, column: 35, }, end: Position { line: 78, column: 43, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 77, column: 5, }, end: Position { line: 78, column: 44, }, }, }, ), span: Span { start: Position { line: 76, column: 21, }, end: Position { line: 78, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "updateManyAttrsByPath", span: Span { start: Position { line: 119, column: 3, }, end: Position { line: 119, column: 24, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "go", span: Span { start: Position { line: 125, column: 5, }, end: Position { line: 125, column: 7, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "prefixLength", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "hasValue", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "updates", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "split", span: Span { start: Position { line: 129, column: 9, }, end: Position { line: 129, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "partition", span: Span { start: Position { line: 129, column: 17, }, end: Position { line: 129, column: 26, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "el", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 129, column: 32, }, end: Position { line: 129, column: 38, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "el", span: Span { start: Position { line: 129, column: 39, }, end: Position { line: 129, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 129, column: 42, }, end: Position { line: 129, column: 46, }, }, }, ), ], default: None, }, ), ], }, ), operator: EqualTo, right: Identifier( Identifier { id: "prefixLength", span: Span { start: Position { line: 129, column: 50, }, end: Position { line: 129, column: 62, }, }, }, ), }, ), span: Span { start: Position { line: 129, column: 28, }, end: Position { line: 129, column: 62, }, }, }, ), Identifier( Identifier { id: "updates", span: Span { start: Position { line: 129, column: 64, }, end: Position { line: 129, column: 71, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nested", span: Span { start: Position { line: 132, column: 9, }, end: Position { line: 132, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "groupBy", span: Span { start: Position { line: 132, column: 18, }, end: Position { line: 132, column: 25, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "el", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "elemAt", span: Span { start: Position { line: 132, column: 31, }, end: Position { line: 132, column: 37, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "el", span: Span { start: Position { line: 132, column: 38, }, end: Position { line: 132, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 132, column: 41, }, end: Position { line: 132, column: 45, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "prefixLength", span: Span { start: Position { line: 132, column: 46, }, end: Position { line: 132, column: 58, }, }, }, ), ], }, ), span: Span { start: Position { line: 132, column: 27, }, end: Position { line: 132, column: 58, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "split", span: Span { start: Position { line: 132, column: 60, }, end: Position { line: 132, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "wrong", span: Span { start: Position { line: 132, column: 66, }, end: Position { line: 132, column: 71, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "withNestedMods", span: Span { start: Position { line: 135, column: 9, }, end: Position { line: 135, column: 23, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "split", span: Span { start: Position { line: 137, column: 14, }, end: Position { line: 137, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "wrong", span: Span { start: Position { line: 137, column: 20, }, end: Position { line: 137, column: 25, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 137, column: 29, }, end: Position { line: 137, column: 31, }, }, }, ), }, ), then: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "hasValue", span: Span { start: Position { line: 138, column: 16, }, end: Position { line: 138, column: 24, }, }, }, ), then: Identifier( Identifier { id: "value", span: Span { start: Position { line: 138, column: 30, }, end: Position { line: 138, column: 35, }, }, }, ), else_: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "updatePath", span: Span { start: Position { line: 144, column: 19, }, end: Position { line: 144, column: 29, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 144, column: 33, }, end: Position { line: 144, column: 37, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "split", span: Span { start: Position { line: 144, column: 38, }, end: Position { line: 144, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "right", span: Span { start: Position { line: 144, column: 44, }, end: Position { line: 144, column: 49, }, }, }, ), ], default: None, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 144, column: 51, }, end: Position { line: 144, column: 55, }, }, }, ), ], default: None, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 145, column: 15, }, end: Position { line: 145, column: 20, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "updateManyAttrsByPath: Path '", span: Span { start: Position { line: 146, column: 18, }, end: Position { line: 146, column: 73, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showAttrPath", span: Span { start: Position { line: 146, column: 49, }, end: Position { line: 146, column: 61, }, }, }, ), arguments: [ Identifier( Identifier { id: "updatePath", span: Span { start: Position { line: 146, column: 62, }, end: Position { line: 146, column: 72, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "' does ", span: Span { start: Position { line: 146, column: 18, }, end: Position { line: 146, column: 80, }, }, }, ), ], span: Span { start: Position { line: 146, column: 17, }, end: Position { line: 146, column: 81, }, }, }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "not exist in the given value, but the first update to this ", span: Span { start: Position { line: 147, column: 18, }, end: Position { line: 147, column: 77, }, }, }, ), ], span: Span { start: Position { line: 147, column: 17, }, end: Position { line: 147, column: 78, }, }, }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "path tries to access the existing value.", span: Span { start: Position { line: 148, column: 18, }, end: Position { line: 148, column: 58, }, }, }, ), ], span: Span { start: Position { line: 148, column: 17, }, end: Position { line: 148, column: 59, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 144, column: 15, }, end: Position { line: 148, column: 60, }, }, }, ), span: Span { start: Position { line: 138, column: 13, }, end: Position { line: 148, column: 60, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: Identifier( Identifier { id: "hasValue", span: Span { start: Position { line: 151, column: 18, }, end: Position { line: 151, column: 26, }, }, }, ), span: Span { start: Position { line: 151, column: 16, }, end: Position { line: 151, column: 26, }, }, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 154, column: 15, }, end: Position { line: 154, column: 23, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "go", span: Span { start: Position { line: 154, column: 31, }, end: Position { line: 154, column: 33, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "prefixLength", span: Span { start: Position { line: 154, column: 35, }, end: Position { line: 154, column: 47, }, }, }, ), operator: Addition, right: Integer( Integer { value: "1", span: Span { start: Position { line: 154, column: 50, }, end: Position { line: 154, column: 51, }, }, }, ), }, ), Identifier( Identifier { id: "false", span: Span { start: Position { line: 154, column: 53, }, end: Position { line: 154, column: 58, }, }, }, ), Identifier( Identifier { id: "null", span: Span { start: Position { line: 154, column: 59, }, end: Position { line: 154, column: 63, }, }, }, ), ], }, ), span: Span { start: Position { line: 154, column: 25, }, end: Position { line: 154, column: 63, }, }, }, ), Identifier( Identifier { id: "nested", span: Span { start: Position { line: 154, column: 65, }, end: Position { line: 154, column: 71, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 155, column: 21, }, end: Position { line: 155, column: 28, }, }, }, ), arguments: [ Identifier( Identifier { id: "value", span: Span { start: Position { line: 155, column: 29, }, end: Position { line: 155, column: 34, }, }, }, ), ], }, ), then: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "value", span: Span { start: Position { line: 158, column: 15, }, end: Position { line: 158, column: 20, }, }, }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 159, column: 15, }, end: Position { line: 159, column: 23, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "go", span: Span { start: Position { line: 159, column: 31, }, end: Position { line: 159, column: 33, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "prefixLength", span: Span { start: Position { line: 159, column: 35, }, end: Position { line: 159, column: 47, }, }, }, ), operator: Addition, right: Integer( Integer { value: "1", span: Span { start: Position { line: 159, column: 50, }, end: Position { line: 159, column: 51, }, }, }, ), }, ), HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "value", span: Span { start: Position { line: 159, column: 54, }, end: Position { line: 159, column: 59, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 159, column: 64, }, end: Position { line: 159, column: 68, }, }, }, ), }, ), ], }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "value", span: Span { start: Position { line: 159, column: 71, }, end: Position { line: 159, column: 76, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 159, column: 79, }, end: Position { line: 159, column: 83, }, }, }, ), }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 159, column: 25, }, end: Position { line: 159, column: 84, }, }, }, ), Identifier( Identifier { id: "nested", span: Span { start: Position { line: 159, column: 86, }, end: Position { line: 159, column: 92, }, }, }, ), ], }, ), }, ), else_: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "updatePath", span: Span { start: Position { line: 163, column: 19, }, end: Position { line: 163, column: 29, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 163, column: 33, }, end: Position { line: 163, column: 37, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "split", span: Span { start: Position { line: 163, column: 38, }, end: Position { line: 163, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "wrong", span: Span { start: Position { line: 163, column: 44, }, end: Position { line: 163, column: 49, }, }, }, ), ], default: None, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 163, column: 51, }, end: Position { line: 163, column: 55, }, }, }, ), ], default: None, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 164, column: 15, }, end: Position { line: 164, column: 20, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "updateManyAttrsByPath: Path '", span: Span { start: Position { line: 165, column: 18, }, end: Position { line: 165, column: 73, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showAttrPath", span: Span { start: Position { line: 165, column: 49, }, end: Position { line: 165, column: 61, }, }, }, ), arguments: [ Identifier( Identifier { id: "updatePath", span: Span { start: Position { line: 165, column: 62, }, end: Position { line: 165, column: 72, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "' needs to ", span: Span { start: Position { line: 165, column: 18, }, end: Position { line: 165, column: 84, }, }, }, ), ], span: Span { start: Position { line: 165, column: 17, }, end: Position { line: 165, column: 85, }, }, }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "be updated, but path '", span: Span { start: Position { line: 166, column: 18, }, end: Position { line: 166, column: 86, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showAttrPath", span: Span { start: Position { line: 166, column: 42, }, end: Position { line: 166, column: 54, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "take", span: Span { start: Position { line: 166, column: 56, }, end: Position { line: 166, column: 60, }, }, }, ), arguments: [ Identifier( Identifier { id: "prefixLength", span: Span { start: Position { line: 166, column: 61, }, end: Position { line: 166, column: 73, }, }, }, ), Identifier( Identifier { id: "updatePath", span: Span { start: Position { line: 166, column: 74, }, end: Position { line: 166, column: 84, }, }, }, ), ], }, ), ], }, ), }, ), Raw( PartRaw { content: "' ", span: Span { start: Position { line: 166, column: 18, }, end: Position { line: 166, column: 88, }, }, }, ), ], span: Span { start: Position { line: 166, column: 17, }, end: Position { line: 166, column: 89, }, }, }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "of the given value is not an attribute set, so we can't ", span: Span { start: Position { line: 167, column: 18, }, end: Position { line: 167, column: 74, }, }, }, ), ], span: Span { start: Position { line: 167, column: 17, }, end: Position { line: 167, column: 75, }, }, }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "update an attribute inside of it.", span: Span { start: Position { line: 168, column: 18, }, end: Position { line: 168, column: 51, }, }, }, ), ], span: Span { start: Position { line: 168, column: 17, }, end: Position { line: 168, column: 52, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 163, column: 15, }, end: Position { line: 168, column: 53, }, }, }, ), span: Span { start: Position { line: 155, column: 18, }, end: Position { line: 168, column: 53, }, }, }, ), span: Span { start: Position { line: 151, column: 13, }, end: Position { line: 168, column: 53, }, }, }, ), span: Span { start: Position { line: 137, column: 11, }, end: Position { line: 168, column: 53, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl", span: Span { start: Position { line: 174, column: 10, }, end: Position { line: 174, column: 15, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "acc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "el", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "el", span: Span { start: Position { line: 174, column: 26, }, end: Position { line: 174, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "update", span: Span { start: Position { line: 174, column: 29, }, end: Position { line: 174, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "acc", span: Span { start: Position { line: 174, column: 36, }, end: Position { line: 174, column: 39, }, }, }, ), ], }, ), span: Span { start: Position { line: 174, column: 22, }, end: Position { line: 174, column: 39, }, }, }, ), span: Span { start: Position { line: 174, column: 17, }, end: Position { line: 174, column: 39, }, }, }, ), Identifier( Identifier { id: "withNestedMods", span: Span { start: Position { line: 174, column: 41, }, end: Position { line: 174, column: 55, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "split", span: Span { start: Position { line: 174, column: 56, }, end: Position { line: 174, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "right", span: Span { start: Position { line: 174, column: 62, }, end: Position { line: 174, column: 67, }, }, }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 126, column: 7, }, end: Position { line: 174, column: 67, }, }, }, ), span: Span { start: Position { line: 125, column: 41, }, end: Position { line: 174, column: 67, }, }, }, ), span: Span { start: Position { line: 125, column: 34, }, end: Position { line: 174, column: 67, }, }, }, ), span: Span { start: Position { line: 125, column: 24, }, end: Position { line: 174, column: 67, }, }, }, ), span: Span { start: Position { line: 125, column: 10, }, end: Position { line: 174, column: 67, }, }, }, ), }, ), ], target: Function( Function { head: Simple( FunctionHeadSimple { identifier: "updates", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "go", span: Span { start: Position { line: 176, column: 22, }, end: Position { line: 176, column: 24, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 176, column: 25, }, end: Position { line: 176, column: 26, }, }, }, ), Identifier( Identifier { id: "true", span: Span { start: Position { line: 176, column: 27, }, end: Position { line: 176, column: 31, }, }, }, ), Identifier( Identifier { id: "value", span: Span { start: Position { line: 176, column: 32, }, end: Position { line: 176, column: 37, }, }, }, ), Identifier( Identifier { id: "updates", span: Span { start: Position { line: 176, column: 38, }, end: Position { line: 176, column: 45, }, }, }, ), ], }, ), span: Span { start: Position { line: 176, column: 15, }, end: Position { line: 176, column: 45, }, }, }, ), span: Span { start: Position { line: 176, column: 6, }, end: Position { line: 176, column: 45, }, }, }, ), span: Span { start: Position { line: 119, column: 27, }, end: Position { line: 176, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrVals", span: Span { start: Position { line: 184, column: 3, }, end: Position { line: 184, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "nameList", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 184, column: 29, }, end: Position { line: 184, column: 32, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "set", span: Span { start: Position { line: 184, column: 37, }, end: Position { line: 184, column: 40, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 184, column: 43, }, end: Position { line: 184, column: 44, }, }, }, ), }, ), ], default: None, }, ), span: Span { start: Position { line: 184, column: 34, }, end: Position { line: 184, column: 45, }, }, }, ), Identifier( Identifier { id: "nameList", span: Span { start: Position { line: 184, column: 47, }, end: Position { line: 184, column: 55, }, }, }, ), ], }, ), span: Span { start: Position { line: 184, column: 24, }, end: Position { line: 184, column: 55, }, }, }, ), span: Span { start: Position { line: 184, column: 14, }, end: Position { line: 184, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrValues", span: Span { start: Position { line: 194, column: 3, }, end: Position { line: 194, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 194, column: 16, }, end: Position { line: 194, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrValues", span: Span { start: Position { line: 194, column: 25, }, end: Position { line: 194, column: 35, }, }, }, ), ], default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrVals", span: Span { start: Position { line: 194, column: 47, }, end: Position { line: 194, column: 55, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 194, column: 57, }, end: Position { line: 194, column: 66, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 194, column: 67, }, end: Position { line: 194, column: 72, }, }, }, ), ], }, ), Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 194, column: 74, }, end: Position { line: 194, column: 79, }, }, }, ), ], }, ), span: Span { start: Position { line: 194, column: 40, }, end: Position { line: 194, column: 79, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getAttrs", span: Span { start: Position { line: 204, column: 3, }, end: Position { line: 204, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "names", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "genAttrs", span: Span { start: Position { line: 204, column: 28, }, end: Position { line: 204, column: 36, }, }, }, ), arguments: [ Identifier( Identifier { id: "names", span: Span { start: Position { line: 204, column: 37, }, end: Position { line: 204, column: 42, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 204, column: 50, }, end: Position { line: 204, column: 55, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 204, column: 58, }, end: Position { line: 204, column: 62, }, }, }, ), }, ), ], default: None, }, ), span: Span { start: Position { line: 204, column: 44, }, end: Position { line: 204, column: 63, }, }, }, ), ], }, ), span: Span { start: Position { line: 204, column: 21, }, end: Position { line: 204, column: 64, }, }, }, ), span: Span { start: Position { line: 204, column: 14, }, end: Position { line: 204, column: 64, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "catAttrs", span: Span { start: Position { line: 213, column: 3, }, end: Position { line: 213, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 213, column: 14, }, end: Position { line: 213, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "catAttrs", span: Span { start: Position { line: 213, column: 23, }, end: Position { line: 213, column: 31, }, }, }, ), ], default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "attr", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "l", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 214, column: 15, }, end: Position { line: 214, column: 26, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 214, column: 28, }, end: Position { line: 214, column: 31, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "s", }, ), body: IfThenElse( IfThenElse { predicate: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "s", span: Span { start: Position { line: 214, column: 39, }, end: Position { line: 214, column: 40, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 214, column: 45, }, end: Position { line: 214, column: 49, }, }, }, ), }, ), ], }, ), then: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "s", span: Span { start: Position { line: 214, column: 57, }, end: Position { line: 214, column: 58, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 214, column: 61, }, end: Position { line: 214, column: 65, }, }, }, ), }, ), ], default: None, }, ), ], span: Span { start: Position { line: 214, column: 56, }, end: Position { line: 214, column: 67, }, }, }, ), else_: List( List { elements: [], span: Span { start: Position { line: 214, column: 73, }, end: Position { line: 214, column: 75, }, }, }, ), span: Span { start: Position { line: 214, column: 36, }, end: Position { line: 214, column: 75, }, }, }, ), span: Span { start: Position { line: 214, column: 33, }, end: Position { line: 214, column: 75, }, }, }, ), Identifier( Identifier { id: "l", span: Span { start: Position { line: 214, column: 77, }, end: Position { line: 214, column: 78, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 214, column: 12, }, end: Position { line: 214, column: 79, }, }, }, ), span: Span { start: Position { line: 214, column: 6, }, end: Position { line: 214, column: 79, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filterAttrs", span: Span { start: Position { line: 224, column: 3, }, end: Position { line: 224, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pred", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 225, column: 5, }, end: Position { line: 225, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 225, column: 18, }, end: Position { line: 225, column: 27, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "v", span: Span { start: Position { line: 225, column: 39, }, end: Position { line: 225, column: 40, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "set", span: Span { start: Position { line: 225, column: 43, }, end: Position { line: 225, column: 46, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 225, column: 49, }, end: Position { line: 225, column: 53, }, }, }, ), }, ), ], default: None, }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pred", span: Span { start: Position { line: 225, column: 62, }, end: Position { line: 225, column: 66, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 225, column: 67, }, end: Position { line: 225, column: 71, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 225, column: 72, }, end: Position { line: 225, column: 73, }, }, }, ), ], }, ), then: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 225, column: 81, }, end: Position { line: 225, column: 94, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 225, column: 95, }, end: Position { line: 225, column: 99, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 225, column: 100, }, end: Position { line: 225, column: 101, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 225, column: 79, }, end: Position { line: 225, column: 103, }, }, }, ), else_: List( List { elements: [], span: Span { start: Position { line: 225, column: 109, }, end: Position { line: 225, column: 111, }, }, }, ), span: Span { start: Position { line: 225, column: 59, }, end: Position { line: 225, column: 111, }, }, }, ), span: Span { start: Position { line: 225, column: 35, }, end: Position { line: 225, column: 111, }, }, }, ), span: Span { start: Position { line: 225, column: 29, }, end: Position { line: 225, column: 111, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 225, column: 114, }, end: Position { line: 225, column: 123, }, }, }, ), arguments: [ Identifier( Identifier { id: "set", span: Span { start: Position { line: 225, column: 124, }, end: Position { line: 225, column: 127, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 224, column: 23, }, end: Position { line: 225, column: 129, }, }, }, ), span: Span { start: Position { line: 224, column: 17, }, end: Position { line: 225, column: 129, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filterAttrsRecursive", span: Span { start: Position { line: 235, column: 3, }, end: Position { line: 235, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pred", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 236, column: 5, }, end: Position { line: 236, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 237, column: 7, }, end: Position { line: 237, column: 16, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "v", span: Span { start: Position { line: 238, column: 13, }, end: Position { line: 238, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "set", span: Span { start: Position { line: 238, column: 17, }, end: Position { line: 238, column: 20, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 238, column: 23, }, end: Position { line: 238, column: 27, }, }, }, ), }, ), ], default: None, }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pred", span: Span { start: Position { line: 239, column: 12, }, end: Position { line: 239, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 239, column: 17, }, end: Position { line: 239, column: 21, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 239, column: 22, }, end: Position { line: 239, column: 23, }, }, }, ), ], }, ), then: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 240, column: 12, }, end: Position { line: 240, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 240, column: 26, }, end: Position { line: 240, column: 30, }, }, }, ), IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 241, column: 16, }, end: Position { line: 241, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 241, column: 24, }, end: Position { line: 241, column: 25, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterAttrsRecursive", span: Span { start: Position { line: 241, column: 31, }, end: Position { line: 241, column: 51, }, }, }, ), arguments: [ Identifier( Identifier { id: "pred", span: Span { start: Position { line: 241, column: 52, }, end: Position { line: 241, column: 56, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 241, column: 57, }, end: Position { line: 241, column: 58, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "v", span: Span { start: Position { line: 242, column: 18, }, end: Position { line: 242, column: 19, }, }, }, ), span: Span { start: Position { line: 241, column: 13, }, end: Position { line: 242, column: 19, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 239, column: 29, }, end: Position { line: 244, column: 10, }, }, }, ), else_: List( List { elements: [], span: Span { start: Position { line: 244, column: 16, }, end: Position { line: 244, column: 18, }, }, }, ), span: Span { start: Position { line: 239, column: 9, }, end: Position { line: 244, column: 18, }, }, }, ), span: Span { start: Position { line: 238, column: 9, }, end: Position { line: 244, column: 18, }, }, }, ), span: Span { start: Position { line: 237, column: 18, }, end: Position { line: 244, column: 18, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 245, column: 10, }, end: Position { line: 245, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "set", span: Span { start: Position { line: 245, column: 20, }, end: Position { line: 245, column: 23, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 235, column: 32, }, end: Position { line: 246, column: 6, }, }, }, ), span: Span { start: Position { line: 235, column: 26, }, end: Position { line: 246, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "foldAttrs", span: Span { start: Position { line: 254, column: 3, }, end: Position { line: 254, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "op", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "nul", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldr", span: Span { start: Position { line: 255, column: 5, }, end: Position { line: 255, column: 10, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "a", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldr", span: Span { start: Position { line: 256, column: 9, }, end: Position { line: 256, column: 14, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "o", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "o", span: Span { start: Position { line: 257, column: 11, }, end: Position { line: 257, column: 12, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 257, column: 20, }, end: Position { line: 257, column: 24, }, }, }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "op", span: Span { start: Position { line: 257, column: 28, }, end: Position { line: 257, column: 30, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 257, column: 31, }, end: Position { line: 257, column: 32, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 257, column: 35, }, end: Position { line: 257, column: 39, }, }, }, ), }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "a", span: Span { start: Position { line: 257, column: 42, }, end: Position { line: 257, column: 43, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 257, column: 46, }, end: Position { line: 257, column: 50, }, }, }, ), }, ), ], default: Some( Identifier( Identifier { id: "nul", span: Span { start: Position { line: 257, column: 55, }, end: Position { line: 257, column: 58, }, }, }, ), ), }, ), ], }, ), }, ), ], span: Span { start: Position { line: 257, column: 16, }, end: Position { line: 257, column: 62, }, }, }, ), }, ), span: Span { start: Position { line: 256, column: 22, }, end: Position { line: 257, column: 62, }, }, }, ), span: Span { start: Position { line: 256, column: 16, }, end: Position { line: 257, column: 62, }, }, }, ), Identifier( Identifier { id: "a", span: Span { start: Position { line: 258, column: 11, }, end: Position { line: 258, column: 12, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 258, column: 14, }, end: Position { line: 258, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 258, column: 24, }, end: Position { line: 258, column: 25, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 255, column: 15, }, end: Position { line: 258, column: 26, }, }, }, ), span: Span { start: Position { line: 255, column: 12, }, end: Position { line: 258, column: 26, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 259, column: 7, }, end: Position { line: 259, column: 9, }, }, }, ), ], }, ), span: Span { start: Position { line: 254, column: 19, }, end: Position { line: 259, column: 9, }, }, }, ), span: Span { start: Position { line: 254, column: 15, }, end: Position { line: 259, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "collect", span: Span { start: Position { line: 278, column: 3, }, end: Position { line: 278, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pred", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pred", span: Span { start: Position { line: 279, column: 8, }, end: Position { line: 279, column: 12, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 279, column: 13, }, end: Position { line: 279, column: 18, }, }, }, ), ], }, ), then: List( List { elements: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 280, column: 9, }, end: Position { line: 280, column: 14, }, }, }, ), ], span: Span { start: Position { line: 280, column: 7, }, end: Position { line: 280, column: 16, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 281, column: 13, }, end: Position { line: 281, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 281, column: 21, }, end: Position { line: 281, column: 26, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 282, column: 7, }, end: Position { line: 282, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "collect", span: Span { start: Position { line: 282, column: 18, }, end: Position { line: 282, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "pred", span: Span { start: Position { line: 282, column: 26, }, end: Position { line: 282, column: 30, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 282, column: 33, }, end: Position { line: 282, column: 43, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 282, column: 44, }, end: Position { line: 282, column: 49, }, }, }, ), ], }, ), ], }, ), else_: List( List { elements: [], span: Span { start: Position { line: 284, column: 7, }, end: Position { line: 284, column: 9, }, }, }, ), span: Span { start: Position { line: 281, column: 10, }, end: Position { line: 284, column: 9, }, }, }, ), span: Span { start: Position { line: 279, column: 5, }, end: Position { line: 284, column: 9, }, }, }, ), span: Span { start: Position { line: 278, column: 19, }, end: Position { line: 284, column: 9, }, }, }, ), span: Span { start: Position { line: 278, column: 13, }, end: Position { line: 284, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cartesianProductOfSets", span: Span { start: Position { line: 297, column: 3, }, end: Position { line: 297, column: 25, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrsOfLists", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl'", span: Span { start: Position { line: 298, column: 5, }, end: Position { line: 298, column: 11, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "listOfAttrs", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrName", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 299, column: 7, }, end: Position { line: 299, column: 16, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 300, column: 9, }, end: Position { line: 300, column: 12, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "listValue", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 300, column: 25, }, end: Position { line: 300, column: 30, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attrName", span: Span { start: Position { line: 300, column: 38, }, end: Position { line: 300, column: 46, }, }, }, ), }, ), ], to: Identifier( Identifier { id: "listValue", span: Span { start: Position { line: 300, column: 50, }, end: Position { line: 300, column: 59, }, }, }, ), }, ), ], span: Span { start: Position { line: 300, column: 34, }, end: Position { line: 300, column: 62, }, }, }, ), }, ), span: Span { start: Position { line: 300, column: 14, }, end: Position { line: 300, column: 62, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrsOfLists", span: Span { start: Position { line: 300, column: 64, }, end: Position { line: 300, column: 76, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attrName", span: Span { start: Position { line: 300, column: 79, }, end: Position { line: 300, column: 87, }, }, }, ), }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 299, column: 18, }, end: Position { line: 300, column: 88, }, }, }, ), Identifier( Identifier { id: "listOfAttrs", span: Span { start: Position { line: 301, column: 9, }, end: Position { line: 301, column: 20, }, }, }, ), ], }, ), span: Span { start: Position { line: 298, column: 26, }, end: Position { line: 301, column: 20, }, }, }, ), span: Span { start: Position { line: 298, column: 13, }, end: Position { line: 301, column: 20, }, }, }, ), List( List { elements: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 302, column: 8, }, end: Position { line: 302, column: 10, }, }, }, ), ], span: Span { start: Position { line: 302, column: 7, }, end: Position { line: 302, column: 11, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 302, column: 13, }, end: Position { line: 302, column: 22, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrsOfLists", span: Span { start: Position { line: 302, column: 23, }, end: Position { line: 302, column: 35, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 297, column: 28, }, end: Position { line: 302, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nameValuePair", span: Span { start: Position { line: 312, column: 3, }, end: Position { line: 312, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 312, column: 42, }, end: Position { line: 312, column: 46, }, }, }, ), Raw( PartRaw { content: "value", span: Span { start: Position { line: 312, column: 47, }, end: Position { line: 312, column: 52, }, }, }, ), ], span: Span { start: Position { line: 312, column: 33, }, end: Position { line: 312, column: 53, }, }, }, ), ], span: Span { start: Position { line: 312, column: 32, }, end: Position { line: 312, column: 55, }, }, }, ), span: Span { start: Position { line: 312, column: 25, }, end: Position { line: 312, column: 55, }, }, }, ), span: Span { start: Position { line: 312, column: 19, }, end: Position { line: 312, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 325, column: 3, }, end: Position { line: 325, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 325, column: 14, }, end: Position { line: 325, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 325, column: 23, }, end: Position { line: 325, column: 31, }, }, }, ), ], default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 327, column: 7, }, end: Position { line: 327, column: 18, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 327, column: 20, }, end: Position { line: 327, column: 23, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "attr", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 327, column: 33, }, end: Position { line: 327, column: 37, }, }, }, ), ], to: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 327, column: 40, }, end: Position { line: 327, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 327, column: 46, }, end: Position { line: 327, column: 51, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 327, column: 54, }, end: Position { line: 327, column: 55, }, }, }, ), arguments: [ Identifier( Identifier { id: "attr", span: Span { start: Position { line: 327, column: 56, }, end: Position { line: 327, column: 60, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "set", span: Span { start: Position { line: 327, column: 61, }, end: Position { line: 327, column: 64, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 327, column: 67, }, end: Position { line: 327, column: 71, }, }, }, ), }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 327, column: 31, }, end: Position { line: 327, column: 75, }, }, }, ), span: Span { start: Position { line: 327, column: 25, }, end: Position { line: 327, column: 75, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 327, column: 78, }, end: Position { line: 327, column: 87, }, }, }, ), arguments: [ Identifier( Identifier { id: "set", span: Span { start: Position { line: 327, column: 88, }, end: Position { line: 327, column: 91, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 326, column: 9, }, end: Position { line: 327, column: 93, }, }, }, ), span: Span { start: Position { line: 326, column: 6, }, end: Position { line: 327, column: 93, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapAttrs'", span: Span { start: Position { line: 339, column: 3, }, end: Position { line: 339, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 340, column: 5, }, end: Position { line: 340, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 340, column: 18, }, end: Position { line: 340, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "attr", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 340, column: 29, }, end: Position { line: 340, column: 30, }, }, }, ), arguments: [ Identifier( Identifier { id: "attr", span: Span { start: Position { line: 340, column: 31, }, end: Position { line: 340, column: 35, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "set", span: Span { start: Position { line: 340, column: 36, }, end: Position { line: 340, column: 39, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "attr", span: Span { start: Position { line: 340, column: 42, }, end: Position { line: 340, column: 46, }, }, }, ), }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 340, column: 23, }, end: Position { line: 340, column: 47, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 340, column: 50, }, end: Position { line: 340, column: 59, }, }, }, ), arguments: [ Identifier( Identifier { id: "set", span: Span { start: Position { line: 340, column: 60, }, end: Position { line: 340, column: 63, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 339, column: 18, }, end: Position { line: 340, column: 65, }, }, }, ), span: Span { start: Position { line: 339, column: 15, }, end: Position { line: 340, column: 65, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapAttrsToList", span: Span { start: Position { line: 355, column: 3, }, end: Position { line: 355, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 356, column: 5, }, end: Position { line: 356, column: 8, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 356, column: 16, }, end: Position { line: 356, column: 17, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 356, column: 18, }, end: Position { line: 356, column: 22, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 356, column: 23, }, end: Position { line: 356, column: 28, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 356, column: 31, }, end: Position { line: 356, column: 35, }, }, }, ), }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 356, column: 10, }, end: Position { line: 356, column: 36, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 356, column: 39, }, end: Position { line: 356, column: 48, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 356, column: 49, }, end: Position { line: 356, column: 54, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 355, column: 23, }, end: Position { line: 356, column: 55, }, }, }, ), span: Span { start: Position { line: 355, column: 20, }, end: Position { line: 356, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapAttrsRecursive", span: Span { start: Position { line: 372, column: 3, }, end: Position { line: 372, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsRecursiveCond", span: Span { start: Position { line: 372, column: 23, }, end: Position { line: 372, column: 44, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "as", }, ), body: Identifier( Identifier { id: "true", span: Span { start: Position { line: 372, column: 50, }, end: Position { line: 372, column: 54, }, }, }, ), span: Span { start: Position { line: 372, column: 46, }, end: Position { line: 372, column: 54, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapAttrsRecursiveCond", span: Span { start: Position { line: 393, column: 3, }, end: Position { line: 393, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "cond", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recurse", span: Span { start: Position { line: 395, column: 7, }, end: Position { line: 395, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "g", span: Span { start: Position { line: 397, column: 11, }, end: Position { line: 397, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 399, column: 16, }, end: Position { line: 399, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "value", span: Span { start: Position { line: 399, column: 24, }, end: Position { line: 399, column: 29, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "cond", span: Span { start: Position { line: 399, column: 33, }, end: Position { line: 399, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "value", span: Span { start: Position { line: 399, column: 38, }, end: Position { line: 399, column: 43, }, }, }, ), ], }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "recurse", span: Span { start: Position { line: 400, column: 20, }, end: Position { line: 400, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "path", span: Span { start: Position { line: 400, column: 29, }, end: Position { line: 400, column: 33, }, }, }, ), operator: Concatenation, right: List( List { elements: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 400, column: 38, }, end: Position { line: 400, column: 42, }, }, }, ), ], span: Span { start: Position { line: 400, column: 37, }, end: Position { line: 400, column: 43, }, }, }, ), }, ), Identifier( Identifier { id: "value", span: Span { start: Position { line: 400, column: 45, }, end: Position { line: 400, column: 50, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 401, column: 20, }, end: Position { line: 401, column: 21, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "path", span: Span { start: Position { line: 401, column: 23, }, end: Position { line: 401, column: 27, }, }, }, ), operator: Concatenation, right: List( List { elements: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 401, column: 32, }, end: Position { line: 401, column: 36, }, }, }, ), ], span: Span { start: Position { line: 401, column: 31, }, end: Position { line: 401, column: 37, }, }, }, ), }, ), Identifier( Identifier { id: "value", span: Span { start: Position { line: 401, column: 39, }, end: Position { line: 401, column: 44, }, }, }, ), ], }, ), span: Span { start: Position { line: 399, column: 13, }, end: Position { line: 401, column: 44, }, }, }, ), span: Span { start: Position { line: 398, column: 19, }, end: Position { line: 401, column: 44, }, }, }, ), span: Span { start: Position { line: 398, column: 13, }, end: Position { line: 401, column: 44, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 402, column: 12, }, end: Position { line: 402, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "g", span: Span { start: Position { line: 402, column: 21, }, end: Position { line: 402, column: 22, }, }, }, ), ], }, ), span: Span { start: Position { line: 396, column: 9, }, end: Position { line: 402, column: 22, }, }, }, ), span: Span { start: Position { line: 395, column: 17, }, end: Position { line: 402, column: 22, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "recurse", span: Span { start: Position { line: 403, column: 8, }, end: Position { line: 403, column: 15, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 403, column: 16, }, end: Position { line: 403, column: 18, }, }, }, ), Identifier( Identifier { id: "set", span: Span { start: Position { line: 403, column: 19, }, end: Position { line: 403, column: 22, }, }, }, ), ], }, ), span: Span { start: Position { line: 394, column: 5, }, end: Position { line: 403, column: 22, }, }, }, ), span: Span { start: Position { line: 393, column: 36, }, end: Position { line: 403, column: 22, }, }, }, ), span: Span { start: Position { line: 393, column: 33, }, end: Position { line: 403, column: 22, }, }, }, ), span: Span { start: Position { line: 393, column: 27, }, end: Position { line: 403, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "genAttrs", span: Span { start: Position { line: 413, column: 3, }, end: Position { line: 413, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "names", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 414, column: 5, }, end: Position { line: 414, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 414, column: 18, }, end: Position { line: 414, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 414, column: 26, }, end: Position { line: 414, column: 39, }, }, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 414, column: 40, }, end: Position { line: 414, column: 41, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 414, column: 43, }, end: Position { line: 414, column: 44, }, }, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 414, column: 45, }, end: Position { line: 414, column: 46, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 414, column: 23, }, end: Position { line: 414, column: 47, }, }, }, ), Identifier( Identifier { id: "names", span: Span { start: Position { line: 414, column: 49, }, end: Position { line: 414, column: 54, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 413, column: 21, }, end: Position { line: 414, column: 55, }, }, }, ), span: Span { start: Position { line: 413, column: 14, }, end: Position { line: 414, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isDerivation", span: Span { start: Position { line: 427, column: 3, }, end: Position { line: 427, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 427, column: 21, }, end: Position { line: 427, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 427, column: 23, }, end: Position { line: 427, column: 27, }, }, }, ), ], default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 427, column: 31, }, end: Position { line: 427, column: 35, }, }, }, ), ), }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "derivation", span: Span { start: Position { line: 427, column: 40, }, end: Position { line: 427, column: 50, }, }, }, ), ], span: Span { start: Position { line: 427, column: 39, }, end: Position { line: 427, column: 51, }, }, }, ), }, ), span: Span { start: Position { line: 427, column: 18, }, end: Position { line: 427, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "toDerivation", span: Span { start: Position { line: 430, column: 3, }, end: Position { line: 430, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path'", span: Span { start: Position { line: 432, column: 7, }, end: Position { line: 432, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 432, column: 15, }, end: Position { line: 432, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "storePath", span: Span { start: Position { line: 432, column: 24, }, end: Position { line: 432, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 432, column: 34, }, end: Position { line: 432, column: 38, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "res", span: Span { start: Position { line: 433, column: 7, }, end: Position { line: 433, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 434, column: 11, }, end: Position { line: 434, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "derivation", span: Span { start: Position { line: 434, column: 19, }, end: Position { line: 434, column: 29, }, }, }, ), ], span: Span { start: Position { line: 434, column: 18, }, end: Position { line: 434, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 435, column: 11, }, end: Position { line: 435, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "sanitizeDerivationName", span: Span { start: Position { line: 435, column: 18, }, end: Position { line: 435, column: 40, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 435, column: 42, }, end: Position { line: 435, column: 50, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "substring", span: Span { start: Position { line: 435, column: 51, }, end: Position { line: 435, column: 60, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "33", span: Span { start: Position { line: 435, column: 61, }, end: Position { line: 435, column: 63, }, }, }, ), UnaryOperation( UnaryOperation { operator: Negate, operand: Integer( Integer { value: "1", span: Span { start: Position { line: 435, column: 66, }, end: Position { line: 435, column: 67, }, }, }, ), span: Span { start: Position { line: 435, column: 65, }, end: Position { line: 435, column: 67, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "baseNameOf", span: Span { start: Position { line: 435, column: 70, }, end: Position { line: 435, column: 80, }, }, }, ), arguments: [ Identifier( Identifier { id: "path'", span: Span { start: Position { line: 435, column: 81, }, end: Position { line: 435, column: 86, }, }, }, ), ], }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "outPath", span: Span { start: Position { line: 436, column: 11, }, end: Position { line: 436, column: 18, }, }, }, ), ], to: Identifier( Identifier { id: "path'", span: Span { start: Position { line: 436, column: 21, }, end: Position { line: 436, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "outputs", span: Span { start: Position { line: 437, column: 11, }, end: Position { line: 437, column: 18, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "out", span: Span { start: Position { line: 437, column: 24, }, end: Position { line: 437, column: 27, }, }, }, ), ], span: Span { start: Position { line: 437, column: 23, }, end: Position { line: 437, column: 28, }, }, }, ), ], span: Span { start: Position { line: 437, column: 21, }, end: Position { line: 437, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "out", span: Span { start: Position { line: 438, column: 11, }, end: Position { line: 438, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "res", span: Span { start: Position { line: 438, column: 17, }, end: Position { line: 438, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "outputName", span: Span { start: Position { line: 439, column: 11, }, end: Position { line: 439, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "out", span: Span { start: Position { line: 439, column: 25, }, end: Position { line: 439, column: 28, }, }, }, ), ], span: Span { start: Position { line: 439, column: 24, }, end: Position { line: 439, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 434, column: 9, }, end: Position { line: 440, column: 10, }, }, }, ), }, ), ], target: Identifier( Identifier { id: "res", span: Span { start: Position { line: 441, column: 8, }, end: Position { line: 441, column: 11, }, }, }, ), span: Span { start: Position { line: 431, column: 5, }, end: Position { line: 441, column: 11, }, }, }, ), span: Span { start: Position { line: 430, column: 18, }, end: Position { line: 441, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "optionalAttrs", span: Span { start: Position { line: 453, column: 3, }, end: Position { line: 453, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "cond", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "as", }, ), body: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "cond", span: Span { start: Position { line: 453, column: 32, }, end: Position { line: 453, column: 36, }, }, }, ), then: Identifier( Identifier { id: "as", span: Span { start: Position { line: 453, column: 42, }, end: Position { line: 453, column: 44, }, }, }, ), else_: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 453, column: 50, }, end: Position { line: 453, column: 52, }, }, }, ), span: Span { start: Position { line: 453, column: 29, }, end: Position { line: 453, column: 52, }, }, }, ), span: Span { start: Position { line: 453, column: 25, }, end: Position { line: 453, column: 52, }, }, }, ), span: Span { start: Position { line: 453, column: 19, }, end: Position { line: 453, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zipAttrsWithNames", span: Span { start: Position { line: 463, column: 3, }, end: Position { line: 463, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "names", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "sets", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 464, column: 5, }, end: Position { line: 464, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 464, column: 18, }, end: Position { line: 464, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 465, column: 15, }, end: Position { line: 465, column: 19, }, }, }, ), ], span: Span { start: Position { line: 464, column: 30, }, end: Position { line: 465, column: 20, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 466, column: 7, }, end: Position { line: 466, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 466, column: 15, }, end: Position { line: 466, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 466, column: 17, }, end: Position { line: 466, column: 21, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "catAttrs", span: Span { start: Position { line: 466, column: 23, }, end: Position { line: 466, column: 31, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 466, column: 32, }, end: Position { line: 466, column: 36, }, }, }, ), Identifier( Identifier { id: "sets", span: Span { start: Position { line: 466, column: 37, }, end: Position { line: 466, column: 41, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 464, column: 29, }, end: Position { line: 467, column: 6, }, }, }, ), span: Span { start: Position { line: 464, column: 23, }, end: Position { line: 467, column: 6, }, }, }, ), Identifier( Identifier { id: "names", span: Span { start: Position { line: 467, column: 8, }, end: Position { line: 467, column: 13, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 463, column: 33, }, end: Position { line: 467, column: 14, }, }, }, ), span: Span { start: Position { line: 463, column: 30, }, end: Position { line: 467, column: 14, }, }, }, ), span: Span { start: Position { line: 463, column: 23, }, end: Position { line: 467, column: 14, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zipAttrsWith", span: Span { start: Position { line: 478, column: 3, }, end: Position { line: 478, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 479, column: 5, }, end: Position { line: 479, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "zipAttrsWith", span: Span { start: Position { line: 479, column: 14, }, end: Position { line: 479, column: 26, }, }, }, ), ], default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "sets", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "zipAttrsWithNames", span: Span { start: Position { line: 479, column: 40, }, end: Position { line: 479, column: 57, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMap", span: Span { start: Position { line: 479, column: 59, }, end: Position { line: 479, column: 68, }, }, }, ), arguments: [ Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 479, column: 69, }, end: Position { line: 479, column: 78, }, }, }, ), Identifier( Identifier { id: "sets", span: Span { start: Position { line: 479, column: 79, }, end: Position { line: 479, column: 83, }, }, }, ), ], }, ), Identifier( Identifier { id: "f", span: Span { start: Position { line: 479, column: 85, }, end: Position { line: 479, column: 86, }, }, }, ), Identifier( Identifier { id: "sets", span: Span { start: Position { line: 479, column: 87, }, end: Position { line: 479, column: 91, }, }, }, ), ], }, ), span: Span { start: Position { line: 479, column: 34, }, end: Position { line: 479, column: 91, }, }, }, ), span: Span { start: Position { line: 479, column: 31, }, end: Position { line: 479, column: 91, }, }, }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zipAttrs", span: Span { start: Position { line: 486, column: 3, }, end: Position { line: 486, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "zipAttrsWith", span: Span { start: Position { line: 486, column: 14, }, end: Position { line: 486, column: 26, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "values", }, ), body: Identifier( Identifier { id: "values", span: Span { start: Position { line: 486, column: 42, }, end: Position { line: 486, column: 48, }, }, }, ), span: Span { start: Position { line: 486, column: 34, }, end: Position { line: 486, column: 48, }, }, }, ), span: Span { start: Position { line: 486, column: 28, }, end: Position { line: 486, column: 48, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recursiveUpdateUntil", span: Span { start: Position { line: 516, column: 3, }, end: Position { line: 516, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pred", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "lhs", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "rhs", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "f", span: Span { start: Position { line: 517, column: 9, }, end: Position { line: 517, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrPath", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "zipAttrsWith", span: Span { start: Position { line: 518, column: 7, }, end: Position { line: 518, column: 19, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "values", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "here", span: Span { start: Position { line: 519, column: 13, }, end: Position { line: 519, column: 17, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrPath", span: Span { start: Position { line: 519, column: 20, }, end: Position { line: 519, column: 28, }, }, }, ), operator: Concatenation, right: List( List { elements: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 519, column: 33, }, end: Position { line: 519, column: 34, }, }, }, ), ], span: Span { start: Position { line: 519, column: 32, }, end: Position { line: 519, column: 35, }, }, }, ), }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 520, column: 12, }, end: Position { line: 520, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 520, column: 19, }, end: Position { line: 520, column: 25, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 520, column: 29, }, end: Position { line: 520, column: 30, }, }, }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pred", span: Span { start: Position { line: 521, column: 12, }, end: Position { line: 521, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "here", span: Span { start: Position { line: 521, column: 17, }, end: Position { line: 521, column: 21, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "elemAt", span: Span { start: Position { line: 521, column: 23, }, end: Position { line: 521, column: 29, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 521, column: 30, }, end: Position { line: 521, column: 36, }, }, }, ), Integer( Integer { value: "1", span: Span { start: Position { line: 521, column: 37, }, end: Position { line: 521, column: 38, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 521, column: 41, }, end: Position { line: 521, column: 45, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 521, column: 46, }, end: Position { line: 521, column: 52, }, }, }, ), ], }, ), ], }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 522, column: 11, }, end: Position { line: 522, column: 15, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 522, column: 16, }, end: Position { line: 522, column: 22, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 524, column: 11, }, end: Position { line: 524, column: 12, }, }, }, ), arguments: [ Identifier( Identifier { id: "here", span: Span { start: Position { line: 524, column: 13, }, end: Position { line: 524, column: 17, }, }, }, ), Identifier( Identifier { id: "values", span: Span { start: Position { line: 524, column: 18, }, end: Position { line: 524, column: 24, }, }, }, ), ], }, ), span: Span { start: Position { line: 520, column: 9, }, end: Position { line: 524, column: 24, }, }, }, ), span: Span { start: Position { line: 519, column: 9, }, end: Position { line: 524, column: 24, }, }, }, ), span: Span { start: Position { line: 518, column: 24, }, end: Position { line: 524, column: 24, }, }, }, ), span: Span { start: Position { line: 518, column: 21, }, end: Position { line: 524, column: 24, }, }, }, ), ], }, ), span: Span { start: Position { line: 517, column: 13, }, end: Position { line: 525, column: 8, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 526, column: 8, }, end: Position { line: 526, column: 9, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 526, column: 10, }, end: Position { line: 526, column: 12, }, }, }, ), List( List { elements: [ Identifier( Identifier { id: "rhs", span: Span { start: Position { line: 526, column: 14, }, end: Position { line: 526, column: 17, }, }, }, ), Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 526, column: 18, }, end: Position { line: 526, column: 21, }, }, }, ), ], span: Span { start: Position { line: 526, column: 13, }, end: Position { line: 526, column: 22, }, }, }, ), ], }, ), span: Span { start: Position { line: 517, column: 5, }, end: Position { line: 526, column: 22, }, }, }, ), span: Span { start: Position { line: 516, column: 37, }, end: Position { line: 526, column: 22, }, }, }, ), span: Span { start: Position { line: 516, column: 32, }, end: Position { line: 526, column: 22, }, }, }, ), span: Span { start: Position { line: 516, column: 26, }, end: Position { line: 526, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recursiveUpdate", span: Span { start: Position { line: 547, column: 3, }, end: Position { line: 547, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "recursiveUpdateUntil", span: Span { start: Position { line: 547, column: 21, }, end: Position { line: 547, column: 41, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "lhs", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "rhs", }, ), body: UnaryOperation( UnaryOperation { operator: Not, operand: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 547, column: 61, }, end: Position { line: 547, column: 68, }, }, }, ), arguments: [ Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 547, column: 69, }, end: Position { line: 547, column: 72, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 547, column: 76, }, end: Position { line: 547, column: 83, }, }, }, ), arguments: [ Identifier( Identifier { id: "rhs", span: Span { start: Position { line: 547, column: 84, }, end: Position { line: 547, column: 87, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 547, column: 59, }, end: Position { line: 547, column: 88, }, }, }, ), span: Span { start: Position { line: 547, column: 54, }, end: Position { line: 547, column: 88, }, }, }, ), span: Span { start: Position { line: 547, column: 49, }, end: Position { line: 547, column: 88, }, }, }, ), span: Span { start: Position { line: 547, column: 43, }, end: Position { line: 547, column: 88, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "matchAttrs", span: Span { start: Position { line: 555, column: 3, }, end: Position { line: 555, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pattern", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: Assert( Assert { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 555, column: 39, }, end: Position { line: 555, column: 46, }, }, }, ), arguments: [ Identifier( Identifier { id: "pattern", span: Span { start: Position { line: 555, column: 47, }, end: Position { line: 555, column: 54, }, }, }, ), ], }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 556, column: 5, }, end: Position { line: 556, column: 8, }, }, }, ), arguments: [ Identifier( Identifier { id: "id", span: Span { start: Position { line: 556, column: 9, }, end: Position { line: 556, column: 11, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 556, column: 13, }, end: Position { line: 556, column: 23, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "zipAttrsWithNames", span: Span { start: Position { line: 556, column: 25, }, end: Position { line: 556, column: 42, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 556, column: 44, }, end: Position { line: 556, column: 53, }, }, }, ), arguments: [ Identifier( Identifier { id: "pattern", span: Span { start: Position { line: 556, column: 54, }, end: Position { line: 556, column: 61, }, }, }, ), ], }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "values", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pat", span: Span { start: Position { line: 557, column: 11, }, end: Position { line: 557, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 557, column: 17, }, end: Position { line: 557, column: 21, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 557, column: 22, }, end: Position { line: 557, column: 28, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "val", span: Span { start: Position { line: 557, column: 30, }, end: Position { line: 557, column: 33, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "elemAt", span: Span { start: Position { line: 557, column: 36, }, end: Position { line: 557, column: 42, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 557, column: 43, }, end: Position { line: 557, column: 49, }, }, }, ), Integer( Integer { value: "1", span: Span { start: Position { line: 557, column: 50, }, end: Position { line: 557, column: 51, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 558, column: 10, }, end: Position { line: 558, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "values", span: Span { start: Position { line: 558, column: 17, }, end: Position { line: 558, column: 23, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 558, column: 27, }, end: Position { line: 558, column: 28, }, }, }, ), }, ), then: Identifier( Identifier { id: "false", span: Span { start: Position { line: 558, column: 34, }, end: Position { line: 558, column: 39, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 559, column: 15, }, end: Position { line: 559, column: 22, }, }, }, ), arguments: [ Identifier( Identifier { id: "pat", span: Span { start: Position { line: 559, column: 23, }, end: Position { line: 559, column: 26, }, }, }, ), ], }, ), then: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 559, column: 32, }, end: Position { line: 559, column: 39, }, }, }, ), arguments: [ Identifier( Identifier { id: "val", span: Span { start: Position { line: 559, column: 40, }, end: Position { line: 559, column: 43, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "matchAttrs", span: Span { start: Position { line: 559, column: 47, }, end: Position { line: 559, column: 57, }, }, }, ), arguments: [ Identifier( Identifier { id: "pat", span: Span { start: Position { line: 559, column: 58, }, end: Position { line: 559, column: 61, }, }, }, ), Identifier( Identifier { id: "val", span: Span { start: Position { line: 559, column: 62, }, end: Position { line: 559, column: 65, }, }, }, ), ], }, ), }, ), else_: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "pat", span: Span { start: Position { line: 560, column: 12, }, end: Position { line: 560, column: 15, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "val", span: Span { start: Position { line: 560, column: 19, }, end: Position { line: 560, column: 22, }, }, }, ), }, ), span: Span { start: Position { line: 559, column: 12, }, end: Position { line: 560, column: 22, }, }, }, ), span: Span { start: Position { line: 558, column: 7, }, end: Position { line: 560, column: 22, }, }, }, ), span: Span { start: Position { line: 557, column: 7, }, end: Position { line: 560, column: 22, }, }, }, ), span: Span { start: Position { line: 556, column: 67, }, end: Position { line: 560, column: 22, }, }, }, ), span: Span { start: Position { line: 556, column: 64, }, end: Position { line: 560, column: 22, }, }, }, ), List( List { elements: [ Identifier( Identifier { id: "pattern", span: Span { start: Position { line: 561, column: 8, }, end: Position { line: 561, column: 15, }, }, }, ), Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 561, column: 16, }, end: Position { line: 561, column: 21, }, }, }, ), ], span: Span { start: Position { line: 561, column: 7, }, end: Position { line: 561, column: 22, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 555, column: 32, }, end: Position { line: 561, column: 24, }, }, }, ), span: Span { start: Position { line: 555, column: 25, }, end: Position { line: 561, column: 24, }, }, }, ), span: Span { start: Position { line: 555, column: 16, }, end: Position { line: 561, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "overrideExisting", span: Span { start: Position { line: 574, column: 3, }, end: Position { line: 574, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "old", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "new", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 575, column: 5, }, end: Position { line: 575, column: 13, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "new", span: Span { start: Position { line: 575, column: 28, }, end: Position { line: 575, column: 31, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 575, column: 34, }, end: Position { line: 575, column: 38, }, }, }, ), }, ), ], default: Some( Identifier( Identifier { id: "value", span: Span { start: Position { line: 575, column: 43, }, end: Position { line: 575, column: 48, }, }, }, ), ), }, ), span: Span { start: Position { line: 575, column: 21, }, end: Position { line: 575, column: 48, }, }, }, ), span: Span { start: Position { line: 575, column: 15, }, end: Position { line: 575, column: 48, }, }, }, ), Identifier( Identifier { id: "old", span: Span { start: Position { line: 575, column: 50, }, end: Position { line: 575, column: 53, }, }, }, ), ], }, ), span: Span { start: Position { line: 574, column: 27, }, end: Position { line: 575, column: 53, }, }, }, ), span: Span { start: Position { line: 574, column: 22, }, end: Position { line: 575, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "showAttrPath", span: Span { start: Position { line: 587, column: 3, }, end: Position { line: 587, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "path", span: Span { start: Position { line: 588, column: 8, }, end: Position { line: 588, column: 12, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 588, column: 16, }, end: Position { line: 588, column: 18, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 588, column: 25, }, end: Position { line: 588, column: 46, }, }, }, ), ], span: Span { start: Position { line: 588, column: 24, }, end: Position { line: 588, column: 47, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 589, column: 10, }, end: Position { line: 589, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".", span: Span { start: Position { line: 589, column: 31, }, end: Position { line: 589, column: 32, }, }, }, ), ], span: Span { start: Position { line: 589, column: 30, }, end: Position { line: 589, column: 33, }, }, }, ), Identifier( Identifier { id: "escapeNixIdentifier", span: Span { start: Position { line: 589, column: 34, }, end: Position { line: 589, column: 53, }, }, }, ), Identifier( Identifier { id: "path", span: Span { start: Position { line: 589, column: 54, }, end: Position { line: 589, column: 58, }, }, }, ), ], }, ), span: Span { start: Position { line: 588, column: 5, }, end: Position { line: 589, column: 58, }, }, }, ), span: Span { start: Position { line: 587, column: 18, }, end: Position { line: 589, column: 58, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getOutput", span: Span { start: Position { line: 598, column: 3, }, end: Position { line: 598, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "output", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: UnaryOperation( UnaryOperation { operator: Not, operand: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 599, column: 10, }, end: Position { line: 599, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputSpecified", span: Span { start: Position { line: 599, column: 16, }, end: Position { line: 599, column: 31, }, }, }, ), ], }, ), span: Span { start: Position { line: 599, column: 8, }, end: Position { line: 599, column: 31, }, }, }, ), operator: LogicalOr, right: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 599, column: 37, }, end: Position { line: 599, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputSpecified", span: Span { start: Position { line: 599, column: 41, }, end: Position { line: 599, column: 56, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 599, column: 35, }, end: Position { line: 599, column: 56, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 600, column: 12, }, end: Position { line: 600, column: 15, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "output", span: Span { start: Position { line: 600, column: 18, }, end: Position { line: 600, column: 24, }, }, }, ), }, ), ], default: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 600, column: 29, }, end: Position { line: 600, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "out", span: Span { start: Position { line: 600, column: 33, }, end: Position { line: 600, column: 36, }, }, }, ), ], default: Some( Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 600, column: 40, }, end: Position { line: 600, column: 43, }, }, }, ), ), }, ), ), }, ), else_: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 601, column: 12, }, end: Position { line: 601, column: 15, }, }, }, ), span: Span { start: Position { line: 599, column: 5, }, end: Position { line: 601, column: 15, }, }, }, ), span: Span { start: Position { line: 598, column: 23, }, end: Position { line: 601, column: 15, }, }, }, ), span: Span { start: Position { line: 598, column: 15, }, end: Position { line: 601, column: 15, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getBin", span: Span { start: Position { line: 603, column: 3, }, end: Position { line: 603, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getOutput", span: Span { start: Position { line: 603, column: 12, }, end: Position { line: 603, column: 21, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "bin", span: Span { start: Position { line: 603, column: 23, }, end: Position { line: 603, column: 26, }, }, }, ), ], span: Span { start: Position { line: 603, column: 22, }, end: Position { line: 603, column: 27, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getLib", span: Span { start: Position { line: 604, column: 3, }, end: Position { line: 604, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getOutput", span: Span { start: Position { line: 604, column: 12, }, end: Position { line: 604, column: 21, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 604, column: 23, }, end: Position { line: 604, column: 26, }, }, }, ), ], span: Span { start: Position { line: 604, column: 22, }, end: Position { line: 604, column: 27, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getDev", span: Span { start: Position { line: 605, column: 3, }, end: Position { line: 605, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getOutput", span: Span { start: Position { line: 605, column: 12, }, end: Position { line: 605, column: 21, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "dev", span: Span { start: Position { line: 605, column: 23, }, end: Position { line: 605, column: 26, }, }, }, ), ], span: Span { start: Position { line: 605, column: 22, }, end: Position { line: 605, column: 27, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getMan", span: Span { start: Position { line: 606, column: 3, }, end: Position { line: 606, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getOutput", span: Span { start: Position { line: 606, column: 12, }, end: Position { line: 606, column: 21, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "man", span: Span { start: Position { line: 606, column: 23, }, end: Position { line: 606, column: 26, }, }, }, ), ], span: Span { start: Position { line: 606, column: 22, }, end: Position { line: 606, column: 27, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "chooseDevOutputs", span: Span { start: Position { line: 609, column: 3, }, end: Position { line: 609, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drvs", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 609, column: 28, }, end: Position { line: 609, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "map", span: Span { start: Position { line: 609, column: 37, }, end: Position { line: 609, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "getDev", span: Span { start: Position { line: 609, column: 41, }, end: Position { line: 609, column: 47, }, }, }, ), Identifier( Identifier { id: "drvs", span: Span { start: Position { line: 609, column: 48, }, end: Position { line: 609, column: 52, }, }, }, ), ], }, ), span: Span { start: Position { line: 609, column: 22, }, end: Position { line: 609, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recurseIntoAttrs", span: Span { start: Position { line: 617, column: 3, }, end: Position { line: 617, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 618, column: 12, }, end: Position { line: 618, column: 17, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recurseForDerivations", span: Span { start: Position { line: 618, column: 23, }, end: Position { line: 618, column: 44, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 618, column: 47, }, end: Position { line: 618, column: 51, }, }, }, ), }, ), ], span: Span { start: Position { line: 618, column: 21, }, end: Position { line: 618, column: 54, }, }, }, ), }, ), span: Span { start: Position { line: 618, column: 5, }, end: Position { line: 618, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontRecurseIntoAttrs", span: Span { start: Position { line: 622, column: 3, }, end: Position { line: 622, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 623, column: 12, }, end: Position { line: 623, column: 17, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "recurseForDerivations", span: Span { start: Position { line: 623, column: 23, }, end: Position { line: 623, column: 44, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 623, column: 47, }, end: Position { line: 623, column: 52, }, }, }, ), }, ), ], span: Span { start: Position { line: 623, column: 21, }, end: Position { line: 623, column: 55, }, }, }, ), }, ), span: Span { start: Position { line: 623, column: 5, }, end: Position { line: 623, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unionOfDisjoint", span: Span { start: Position { line: 629, column: 3, }, end: Position { line: 629, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "y", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "intersection", span: Span { start: Position { line: 631, column: 7, }, end: Position { line: 631, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 631, column: 22, }, end: Position { line: 631, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "intersectAttrs", span: Span { start: Position { line: 631, column: 31, }, end: Position { line: 631, column: 45, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 631, column: 46, }, end: Position { line: 631, column: 47, }, }, }, ), Identifier( Identifier { id: "y", span: Span { start: Position { line: 631, column: 48, }, end: Position { line: 631, column: 49, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "collisions", span: Span { start: Position { line: 632, column: 7, }, end: Position { line: 632, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 632, column: 20, }, end: Position { line: 632, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatStringsSep", span: Span { start: Position { line: 632, column: 24, }, end: Position { line: 632, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 632, column: 42, }, end: Position { line: 632, column: 43, }, }, }, ), ], span: Span { start: Position { line: 632, column: 41, }, end: Position { line: 632, column: 44, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 632, column: 46, }, end: Position { line: 632, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrNames", span: Span { start: Position { line: 632, column: 55, }, end: Position { line: 632, column: 64, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "intersection", span: Span { start: Position { line: 632, column: 65, }, end: Position { line: 632, column: 77, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mask", span: Span { start: Position { line: 633, column: 7, }, end: Position { line: 633, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 633, column: 14, }, end: Position { line: 633, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 633, column: 23, }, end: Position { line: 633, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 633, column: 46, }, end: Position { line: 633, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "throw", span: Span { start: Position { line: 633, column: 55, }, end: Position { line: 633, column: 60, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "unionOfDisjoint: collision on ", span: Span { start: Position { line: 634, column: 10, }, end: Position { line: 634, column: 47, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 634, column: 42, }, end: Position { line: 634, column: 46, }, }, }, ), }, ), Raw( PartRaw { content: "; complete list: ", span: Span { start: Position { line: 634, column: 10, }, end: Position { line: 634, column: 64, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "collisions", span: Span { start: Position { line: 634, column: 66, }, end: Position { line: 634, column: 76, }, }, }, ), }, ), ], span: Span { start: Position { line: 634, column: 9, }, end: Position { line: 634, column: 78, }, }, }, ), ], }, ), span: Span { start: Position { line: 633, column: 39, }, end: Position { line: 634, column: 78, }, }, }, ), span: Span { start: Position { line: 633, column: 33, }, end: Position { line: 634, column: 78, }, }, }, ), Identifier( Identifier { id: "intersection", span: Span { start: Position { line: 635, column: 9, }, end: Position { line: 635, column: 21, }, }, }, ), ], }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 637, column: 8, }, end: Position { line: 637, column: 9, }, }, }, ), operator: Update, right: Identifier( Identifier { id: "y", span: Span { start: Position { line: 637, column: 13, }, end: Position { line: 637, column: 14, }, }, }, ), }, ), operator: Update, right: Identifier( Identifier { id: "mask", span: Span { start: Position { line: 637, column: 19, }, end: Position { line: 637, column: 23, }, }, }, ), }, ), span: Span { start: Position { line: 630, column: 5, }, end: Position { line: 637, column: 23, }, }, }, ), span: Span { start: Position { line: 629, column: 24, }, end: Position { line: 637, column: 23, }, }, }, ), span: Span { start: Position { line: 629, column: 21, }, end: Position { line: 637, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zipWithNames", span: Span { start: Position { line: 641, column: 3, }, end: Position { line: 641, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "zipAttrsWithNames", span: Span { start: Position { line: 641, column: 18, }, end: Position { line: 641, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zip", span: Span { start: Position { line: 642, column: 3, }, end: Position { line: 642, column: 6, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 642, column: 9, }, end: Position { line: 642, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "trace", span: Span { start: Position { line: 642, column: 18, }, end: Position { line: 642, column: 23, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "lib.zip is deprecated, use lib.zipAttrsWith instead", span: Span { start: Position { line: 643, column: 6, }, end: Position { line: 643, column: 57, }, }, }, ), ], span: Span { start: Position { line: 643, column: 5, }, end: Position { line: 643, column: 58, }, }, }, ), Identifier( Identifier { id: "zipAttrsWith", span: Span { start: Position { line: 643, column: 59, }, end: Position { line: 643, column: 71, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 644, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 644, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 644, column: 2, }, }, }, )