---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "prg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "prg",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "thefuck",
         position: (7, 13),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "initScript",
        position: (9, 3),
       },
      ],
     },
     to: String {
      parts: [
       Raw {
        content: "eval $(",
        position: (10, 1),
       },
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "pkgs",
          position: (10, 14),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "thefuck",
            position: (10, 19),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: "/bin/thefuck --alias ",
        position: (10, 27),
       },
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (10, 50),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "alias",
            position: (10, 54),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: ")\n",
        position: (10, 60),
       },
      ],
      position: (9, 16),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (14, 5),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "programs",
            position: (15, 7),
           },
           Raw {
            content: "thefuck",
            position: (15, 16),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (16, 9),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (16, 18),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "thefuck",
                 position: (16, 34),
                },
               ],
               position: (16, 33),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "alias",
               position: (18, 9),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (18, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (19, 11),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "fuck",
                    position: (19, 22),
                   },
                  ],
                  position: (19, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (20, 11),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (20, 18),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (20, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (22, 11),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "`thefuck` needs an alias to be configured.\nThe default value is `fuck`, but you can use anything else as well.\n",
                    position: (23, 1),
                   },
                  ],
                  position: (22, 25),
                 },
                },
               ],
               recursive: false,
               position: (18, 26),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (15, 26),
         },
        },
       ],
       recursive: false,
       position: (14, 15),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (30, 5),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (30, 14),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (30, 19),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (30, 23),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (31, 7),
             },
             Raw {
              content: "systemPackages",
              position: (31, 19),
             },
            ],
           },
           to: With {
            expression: Variable {
             identifier: "pkgs",
             position: (31, 41),
            },
            target: List {
             elements: [
              Variable {
               identifier: "thefuck",
               position: (31, 49),
              },
             ],
             position: (31, 47),
            },
            position: (31, 36),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "programs",
              position: (33, 7),
             },
             Raw {
              content: "bash",
              position: (33, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (33, 21),
             },
            ],
           },
           to: Variable {
            identifier: "initScript",
            position: (33, 44),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "programs",
              position: (34, 7),
             },
             Raw {
              content: "zsh",
              position: (34, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (34, 20),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (34, 43),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "prg",
               position: (34, 48),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "zsh",
                 position: (34, 52),
                },
                Raw {
                 content: "enable",
                 position: (34, 56),
                },
               ],
              },
              default: None,
             },
             Variable {
              identifier: "initScript",
              position: (34, 63),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "programs",
              position: (35, 7),
             },
             Raw {
              content: "fish",
              position: (35, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (35, 21),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (35, 44),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "prg",
               position: (35, 49),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "fish",
                 position: (35, 53),
                },
                Raw {
                 content: "enable",
                 position: (35, 58),
                },
               ],
              },
              default: None,
             },
             String {
              parts: [
               Raw {
                content: "",
                position: (36, 1),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (36, 11),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "thefuck",
                    position: (36, 16),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/bin/thefuck --alias | source\n",
                position: (36, 24),
               },
              ],
              position: (35, 65),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (30, 30),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (13, 3),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}