Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "prg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "prg", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "thefuck", span: Span { start: Position { line: 7, column: 13, }, end: Position { line: 7, column: 20, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bashAndZshInitScript", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 23, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "eval $(", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "thefuck", span: Span { start: Position { line: 10, column: 19, }, end: Position { line: 10, column: 26, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/thefuck --alias ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 48, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 10, column: 50, }, end: Position { line: 10, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "alias", span: Span { start: Position { line: 10, column: 54, }, end: Position { line: 10, column: 59, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ")\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 11, column: 3, }, }, }, ), ], span: Span { start: Position { line: 9, column: 26, }, end: Position { line: 11, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fishInitScript", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 17, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 13, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "thefuck", span: Span { start: Position { line: 13, column: 12, }, end: Position { line: 13, column: 19, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/thefuck --alias ", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 13, column: 41, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 13, column: 43, }, end: Position { line: 13, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "alias", span: Span { start: Position { line: 13, column: 47, }, end: Position { line: 13, column: 52, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " | source\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 14, column: 3, }, }, }, ), ], span: Span { start: Position { line: 12, column: 20, }, end: Position { line: 14, column: 5, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 15, }, }, }, ), Raw( PartRaw { content: "thefuck", span: Span { start: Position { line: 18, column: 16, }, end: Position { line: 18, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 19, column: 18, }, end: Position { line: 19, column: 32, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 34, }, end: Position { line: 19, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 38, }, end: Position { line: 19, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "thefuck", span: Span { start: Position { line: 19, column: 45, }, end: Position { line: 19, column: 52, }, }, }, ), ], span: Span { start: Position { line: 19, column: 44, }, end: Position { line: 19, column: 53, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "alias", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 21, column: 17, }, end: Position { line: 21, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 22, column: 11, }, end: Position { line: 22, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "fuck", span: Span { start: Position { line: 22, column: 22, }, end: Position { line: 22, column: 26, }, }, }, ), ], span: Span { start: Position { line: 22, column: 21, }, end: Position { line: 22, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 23, column: 11, }, end: Position { line: 23, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 18, }, end: Position { line: 23, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 23, column: 24, }, end: Position { line: 23, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 25, column: 11, }, end: Position { line: 25, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 25, column: 25, }, end: Position { line: 25, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 25, column: 29, }, end: Position { line: 25, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "`thefuck` needs an alias to be configured.\nThe default value is `fuck`, but you can use anything else as well.\n", span: Span { start: Position { line: 26, column: 1, }, end: Position { line: 28, column: 11, }, }, }, ), ], span: Span { start: Position { line: 25, column: 35, }, end: Position { line: 28, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 26, }, end: Position { line: 29, column: 10, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 26, }, end: Position { line: 30, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 15, }, end: Position { line: 31, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 33, column: 5, }, end: Position { line: 33, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 33, column: 14, }, end: Position { line: 33, column: 18, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 33, column: 19, }, end: Position { line: 33, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 33, column: 23, }, end: Position { line: 33, column: 29, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 18, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 34, column: 19, }, end: Position { line: 34, column: 33, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 34, column: 41, }, end: Position { line: 34, column: 45, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "thefuck", span: Span { start: Position { line: 34, column: 49, }, end: Position { line: 34, column: 56, }, }, }, ), ], span: Span { start: Position { line: 34, column: 47, }, end: Position { line: 34, column: 58, }, }, }, ), span: Span { start: Position { line: 34, column: 36, }, end: Position { line: 34, column: 58, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 15, }, }, }, ), Raw( PartRaw { content: "bash", span: Span { start: Position { line: 36, column: 16, }, end: Position { line: 36, column: 20, }, }, }, ), Raw( PartRaw { content: "interactiveShellInit", span: Span { start: Position { line: 36, column: 21, }, end: Position { line: 36, column: 41, }, }, }, ), ], to: Identifier( Identifier { id: "bashAndZshInitScript", span: Span { start: Position { line: 36, column: 44, }, end: Position { line: 36, column: 64, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 15, }, }, }, ), Raw( PartRaw { content: "zsh", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 19, }, }, }, ), Raw( PartRaw { content: "interactiveShellInit", span: Span { start: Position { line: 37, column: 20, }, end: Position { line: 37, column: 40, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 37, column: 43, }, end: Position { line: 37, column: 47, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "prg", span: Span { start: Position { line: 37, column: 48, }, end: Position { line: 37, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "zsh", span: Span { start: Position { line: 37, column: 52, }, end: Position { line: 37, column: 55, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 37, column: 56, }, end: Position { line: 37, column: 62, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "bashAndZshInitScript", span: Span { start: Position { line: 37, column: 63, }, end: Position { line: 37, column: 83, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 38, column: 15, }, }, }, ), Raw( PartRaw { content: "fish", span: Span { start: Position { line: 38, column: 16, }, end: Position { line: 38, column: 20, }, }, }, ), Raw( PartRaw { content: "interactiveShellInit", span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 41, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 38, column: 44, }, end: Position { line: 38, column: 48, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "prg", span: Span { start: Position { line: 38, column: 49, }, end: Position { line: 38, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fish", span: Span { start: Position { line: 38, column: 53, }, end: Position { line: 38, column: 57, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 38, column: 58, }, end: Position { line: 38, column: 64, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "fishInitScript", span: Span { start: Position { line: 38, column: 65, }, end: Position { line: 38, column: 79, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 33, column: 30, }, end: Position { line: 39, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 40, column: 4, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 40, column: 4, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 40, column: 4, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 40, column: 4, }, }, }, )