Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "toGNUCommandLineShell", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "options", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "attrs", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArgs", span: Span { start: Position { line: 43, column: 25, }, end: Position { line: 43, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toGNUCommandLine", span: Span { start: Position { line: 43, column: 42, }, end: Position { line: 43, column: 58, }, }, }, ), arguments: [ Identifier( Identifier { id: "options", span: Span { start: Position { line: 43, column: 59, }, end: Position { line: 43, column: 66, }, }, }, ), Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 43, column: 67, }, end: Position { line: 43, column: 72, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 43, column: 14, }, end: Position { line: 43, column: 73, }, }, }, ), span: Span { start: Position { line: 43, column: 5, }, end: Position { line: 43, column: 73, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "toGNUCommandLine", span: Span { start: Position { line: 45, column: 3, }, end: Position { line: 45, column: 19, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "mkOptionName", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 50, column: 13, }, end: Position { line: 50, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stringLength", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 50, column: 35, }, end: Position { line: 50, column: 36, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 50, column: 40, }, end: Position { line: 50, column: 41, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "-", span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 22, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "k", span: Span { start: Position { line: 51, column: 20, }, end: Position { line: 51, column: 21, }, }, }, ), }, ), ], span: Span { start: Position { line: 51, column: 16, }, end: Position { line: 51, column: 23, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "--", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "k", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 52, column: 16, }, end: Position { line: 52, column: 24, }, }, }, ), span: Span { start: Position { line: 50, column: 10, }, end: Position { line: 52, column: 24, }, }, }, ), span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 52, column: 24, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "mkBool", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 57, column: 20, }, end: Position { line: 57, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optional", span: Span { start: Position { line: 57, column: 24, }, end: Position { line: 57, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 57, column: 33, }, end: Position { line: 57, column: 34, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionName", span: Span { start: Position { line: 57, column: 36, }, end: Position { line: 57, column: 48, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 57, column: 49, }, end: Position { line: 57, column: 50, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 57, column: 17, }, end: Position { line: 57, column: 51, }, }, }, ), span: Span { start: Position { line: 57, column: 14, }, end: Position { line: 57, column: 51, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "mkList", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 62, column: 20, }, end: Position { line: 62, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMap", span: Span { start: Position { line: 62, column: 24, }, end: Position { line: 62, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 62, column: 35, }, end: Position { line: 62, column: 43, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 62, column: 44, }, end: Position { line: 62, column: 45, }, }, }, ), ], }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 62, column: 47, }, end: Position { line: 62, column: 48, }, }, }, ), ], }, ), span: Span { start: Position { line: 62, column: 17, }, end: Position { line: 62, column: 48, }, }, }, ), span: Span { start: Position { line: 62, column: 14, }, end: Position { line: 62, column: 48, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "mkOption", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 70, column: 16, }, end: Position { line: 70, column: 17, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 70, column: 21, }, end: Position { line: 70, column: 25, }, }, }, ), }, ), then: List( List { elements: [], span: Span { start: Position { line: 71, column: 18, }, end: Position { line: 71, column: 20, }, }, }, ), else_: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionName", span: Span { start: Position { line: 72, column: 21, }, end: Position { line: 72, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 72, column: 34, }, end: Position { line: 72, column: 35, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 72, column: 38, }, end: Position { line: 72, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generators", span: Span { start: Position { line: 72, column: 42, }, end: Position { line: 72, column: 52, }, }, }, ), Raw( PartRaw { content: "mkValueStringDefault", span: Span { start: Position { line: 72, column: 53, }, end: Position { line: 72, column: 73, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 72, column: 74, }, end: Position { line: 72, column: 76, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 72, column: 77, }, end: Position { line: 72, column: 78, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 72, column: 18, }, end: Position { line: 72, column: 81, }, }, }, ), span: Span { start: Position { line: 70, column: 13, }, end: Position { line: 72, column: 81, }, }, }, ), span: Span { start: Position { line: 70, column: 10, }, end: Position { line: 72, column: 81, }, }, }, ), span: Span { start: Position { line: 70, column: 7, }, end: Position { line: 72, column: 81, }, }, }, ), ), }, ], }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "options", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "render", span: Span { start: Position { line: 76, column: 9, }, end: Position { line: 76, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 77, column: 19, }, end: Position { line: 77, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isBool", span: Span { start: Position { line: 77, column: 28, }, end: Position { line: 77, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 77, column: 35, }, end: Position { line: 77, column: 36, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkBool", span: Span { start: Position { line: 77, column: 42, }, end: Position { line: 77, column: 48, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 77, column: 49, }, end: Position { line: 77, column: 50, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 77, column: 51, }, end: Position { line: 77, column: 52, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 78, column: 19, }, end: Position { line: 78, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isList", span: Span { start: Position { line: 78, column: 28, }, end: Position { line: 78, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 78, column: 35, }, end: Position { line: 78, column: 36, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkList", span: Span { start: Position { line: 78, column: 42, }, end: Position { line: 78, column: 48, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 78, column: 49, }, end: Position { line: 78, column: 50, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 78, column: 51, }, end: Position { line: 78, column: 52, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 79, column: 16, }, end: Position { line: 79, column: 24, }, }, }, ), arguments: [ Identifier( Identifier { id: "k", span: Span { start: Position { line: 79, column: 25, }, end: Position { line: 79, column: 26, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 79, column: 27, }, end: Position { line: 79, column: 28, }, }, }, ), ], }, ), span: Span { start: Position { line: 78, column: 16, }, end: Position { line: 79, column: 28, }, }, }, ), span: Span { start: Position { line: 77, column: 11, }, end: Position { line: 79, column: 28, }, }, }, ), span: Span { start: Position { line: 76, column: 21, }, end: Position { line: 79, column: 28, }, }, }, ), span: Span { start: Position { line: 76, column: 18, }, end: Position { line: 79, column: 28, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatLists", span: Span { start: Position { line: 82, column: 18, }, end: Position { line: 82, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 82, column: 31, }, end: Position { line: 82, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrsToList", span: Span { start: Position { line: 82, column: 35, }, end: Position { line: 82, column: 49, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "render", span: Span { start: Position { line: 82, column: 50, }, end: Position { line: 82, column: 56, }, }, }, ), Identifier( Identifier { id: "options", span: Span { start: Position { line: 82, column: 57, }, end: Position { line: 82, column: 64, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 75, column: 7, }, end: Position { line: 82, column: 65, }, }, }, ), span: Span { start: Position { line: 74, column: 5, }, end: Position { line: 82, column: 65, }, }, }, ), span: Span { start: Position { line: 45, column: 22, }, end: Position { line: 82, column: 65, }, }, }, ), }, ), ], span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 83, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 83, column: 2, }, }, }, )