Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 2, column: 14, }, end: Position { line: 2, column: 17, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 2, column: 19, }, end: Position { line: 2, column: 24, }, }, }, ), Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 2, column: 25, }, end: Position { line: 2, column: 33, }, }, }, ), Raw( PartRaw { content: "attrNames", span: Span { start: Position { line: 2, column: 34, }, end: Position { line: 2, column: 43, }, }, }, ), ], span: Span { start: Position { line: 2, column: 4, }, end: Position { line: 2, column: 44, }, }, }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 6, column: 5, }, end: Position { line: 6, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 6, column: 13, }, end: Position { line: 6, column: 21, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 6, column: 24, }, end: Position { line: 6, column: 28, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 6, column: 31, }, end: Position { line: 6, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsOf", span: Span { start: Position { line: 6, column: 37, }, end: Position { line: 6, column: 44, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 6, column: 45, }, end: Position { line: 6, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 6, column: 49, }, end: Position { line: 6, column: 54, }, }, }, ), Raw( PartRaw { content: "int", span: Span { start: Position { line: 6, column: 55, }, end: Position { line: 6, column: 58, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 6, column: 22, }, end: Position { line: 6, column: 61, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "result", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 7, column: 14, }, end: Position { line: 7, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 7, column: 23, }, end: Position { line: 7, column: 26, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFoo", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 8, column: 17, }, end: Position { line: 8, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 8, column: 26, }, end: Position { line: 8, column: 29, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFooBar", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 9, column: 20, }, end: Position { line: 9, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 9, column: 29, }, end: Position { line: 9, column: 32, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFooFoo", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 10, column: 20, }, end: Position { line: 10, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 10, column: 29, }, end: Position { line: 10, column: 32, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 5, column: 13, }, end: Position { line: 11, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 10, }, }, }, ), Raw( PartRaw { content: "a", span: Span { start: Position { line: 13, column: 11, }, end: Position { line: 13, column: 12, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 13, column: 15, }, end: Position { line: 13, column: 16, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 13, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 17, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 14, column: 18, }, end: Position { line: 14, column: 23, }, }, }, ), Raw( PartRaw { content: "b", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 25, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 14, column: 28, }, end: Position { line: 14, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 13, }, }, }, ), Raw( PartRaw { content: "bar", span: Span { start: Position { line: 15, column: 14, }, end: Position { line: 15, column: 17, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 15, column: 18, }, end: Position { line: 15, column: 23, }, }, }, ), Raw( PartRaw { content: "y", span: Span { start: Position { line: 15, column: 24, }, end: Position { line: 15, column: 25, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 15, column: 28, }, end: Position { line: 15, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 13, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 17, }, }, }, ), Raw( PartRaw { content: "variants", span: Span { start: Position { line: 16, column: 18, }, end: Position { line: 16, column: 26, }, }, }, ), Raw( PartRaw { content: "bar", span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 16, column: 30, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 16, column: 31, }, end: Position { line: 16, column: 36, }, }, }, ), Raw( PartRaw { content: "z", span: Span { start: Position { line: 16, column: 37, }, end: Position { line: 16, column: 38, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 16, column: 41, }, end: Position { line: 16, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 13, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 17, column: 14, }, end: Position { line: 17, column: 17, }, }, }, ), Raw( PartRaw { content: "variants", span: Span { start: Position { line: 17, column: 18, }, end: Position { line: 17, column: 26, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 17, column: 27, }, end: Position { line: 17, column: 30, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 17, column: 31, }, end: Position { line: 17, column: 36, }, }, }, ), Raw( PartRaw { content: "c", span: Span { start: Position { line: 17, column: 37, }, end: Position { line: 17, column: 38, }, }, }, ), ], to: Integer( Integer { value: "3", span: Span { start: Position { line: 17, column: 41, }, end: Position { line: 17, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFoo", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 18, column: 17, }, end: Position { line: 18, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMapStringsSep", span: Span { start: Position { line: 18, column: 21, }, end: Position { line: 18, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 18, column: 42, }, end: Position { line: 18, column: 43, }, }, }, ), ], span: Span { start: Position { line: 18, column: 41, }, end: Position { line: 18, column: 44, }, }, }, ), Identifier( Identifier { id: "toString", span: Span { start: Position { line: 18, column: 45, }, end: Position { line: 18, column: 53, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 18, column: 55, }, end: Position { line: 18, column: 64, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 18, column: 65, }, end: Position { line: 18, column: 71, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 18, column: 72, }, end: Position { line: 18, column: 80, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 18, column: 81, }, end: Position { line: 18, column: 84, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 18, column: 85, }, end: Position { line: 18, column: 90, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFooBar", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 19, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMapStringsSep", span: Span { start: Position { line: 19, column: 24, }, end: Position { line: 19, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 19, column: 45, }, end: Position { line: 19, column: 46, }, }, }, ), ], span: Span { start: Position { line: 19, column: 44, }, end: Position { line: 19, column: 47, }, }, }, ), Identifier( Identifier { id: "toString", span: Span { start: Position { line: 19, column: 48, }, end: Position { line: 19, column: 56, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 19, column: 58, }, end: Position { line: 19, column: 67, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 19, column: 68, }, end: Position { line: 19, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 19, column: 75, }, end: Position { line: 19, column: 83, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 19, column: 84, }, end: Position { line: 19, column: 87, }, }, }, ), Raw( PartRaw { content: "variants", span: Span { start: Position { line: 19, column: 88, }, end: Position { line: 19, column: 96, }, }, }, ), Raw( PartRaw { content: "bar", span: Span { start: Position { line: 19, column: 97, }, end: Position { line: 19, column: 100, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 19, column: 101, }, end: Position { line: 19, column: 106, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "resultFooFoo", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 20, column: 20, }, end: Position { line: 20, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMapStringsSep", span: Span { start: Position { line: 20, column: 24, }, end: Position { line: 20, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 20, column: 45, }, end: Position { line: 20, column: 46, }, }, }, ), ], span: Span { start: Position { line: 20, column: 44, }, end: Position { line: 20, column: 47, }, }, }, ), Identifier( Identifier { id: "toString", span: Span { start: Position { line: 20, column: 48, }, end: Position { line: 20, column: 56, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 20, column: 58, }, end: Position { line: 20, column: 67, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 20, column: 68, }, end: Position { line: 20, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "variants", span: Span { start: Position { line: 20, column: 75, }, end: Position { line: 20, column: 83, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 20, column: 84, }, end: Position { line: 20, column: 87, }, }, }, ), Raw( PartRaw { content: "variants", span: Span { start: Position { line: 20, column: 88, }, end: Position { line: 20, column: 96, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 20, column: 97, }, end: Position { line: 20, column: 100, }, }, }, ), Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 20, column: 101, }, end: Position { line: 20, column: 106, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 12, }, end: Position { line: 21, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 22, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 22, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 22, column: 2, }, }, }, )