Function(
 Function {
  head: Destructured(
   FunctionHeadDestructured {
    ellipsis: true,
    identifier: None,
    arguments: [
     FunctionHeadDestructuredArgument {
      identifier: "config",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "lib",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "pkgs",
      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: "cfg",
            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: "services",
              span: Span {
               start: Position {
                line: 6,
                column: 16,
               },
               end: Position {
                line: 6,
                column: 24,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "apcupsd",
              span: Span {
               start: Position {
                line: 6,
                column: 25,
               },
               end: Position {
                line: 6,
                column: 32,
               },
              },
             },
            ),
           ],
           default: None,
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "configFile",
            span: Span {
             start: Position {
              line: 8,
              column: 3,
             },
             end: Position {
              line: 8,
              column: 13,
             },
            },
           },
          ),
         ],
         to: FunctionApplication(
          FunctionApplication {
           function: PropertyAccess(
            PropertyAccess {
             expression: Identifier(
              Identifier {
               id: "pkgs",
               span: Span {
                start: Position {
                 line: 8,
                 column: 16,
                },
                end: Position {
                 line: 8,
                 column: 20,
                },
               },
              },
             ),
             attribute_path: [
              Raw(
               PartRaw {
                content: "writeText",
                span: Span {
                 start: Position {
                  line: 8,
                  column: 21,
                 },
                 end: Position {
                  line: 8,
                  column: 30,
                 },
                },
               },
              ),
             ],
             default: None,
            },
           ),
           arguments: [
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "apcupsd.conf",
                 span: Span {
                  start: Position {
                   line: 8,
                   column: 32,
                  },
                  end: Position {
                   line: 8,
                   column: 44,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 8,
                column: 31,
               },
               end: Position {
                line: 8,
                column: 45,
               },
              },
             },
            ),
            IndentedString(
             IndentedString {
              parts: [
               Raw(
                PartRaw {
                 content: "## apcupsd.conf v1.1 ##\n# apcupsd complains if the first line is not like above.\n",
                 span: Span {
                  start: Position {
                   line: 9,
                   column: 1,
                  },
                  end: Position {
                   line: 11,
                   column: 5,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: PropertyAccess(
                  PropertyAccess {
                   expression: Identifier(
                    Identifier {
                     id: "cfg",
                     span: Span {
                      start: Position {
                       line: 11,
                       column: 7,
                      },
                      end: Position {
                       line: 11,
                       column: 10,
                      },
                     },
                    },
                   ),
                   attribute_path: [
                    Raw(
                     PartRaw {
                      content: "configText",
                      span: Span {
                       start: Position {
                        line: 11,
                        column: 11,
                       },
                       end: Position {
                        line: 11,
                        column: 21,
                       },
                      },
                     },
                    ),
                   ],
                   default: None,
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "\nSCRIPTDIR ",
                 span: Span {
                  start: Position {
                   line: 9,
                   column: 1,
                  },
                  end: Position {
                   line: 12,
                   column: 15,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: FunctionApplication(
                  FunctionApplication {
                   function: Identifier(
                    Identifier {
                     id: "toString",
                     span: Span {
                      start: Position {
                       line: 12,
                       column: 17,
                      },
                      end: Position {
                       line: 12,
                       column: 25,
                      },
                     },
                    },
                   ),
                   arguments: [
                    Identifier(
                     Identifier {
                      id: "scriptDir",
                      span: Span {
                       start: Position {
                        line: 12,
                        column: 26,
                       },
                       end: Position {
                        line: 12,
                        column: 35,
                       },
                      },
                     },
                    ),
                   ],
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "\n",
                 span: Span {
                  start: Position {
                   line: 9,
                   column: 1,
                  },
                  end: Position {
                   line: 13,
                   column: 3,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 8,
                column: 46,
               },
               end: Position {
                line: 13,
                column: 5,
               },
              },
             },
            ),
           ],
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "eventList",
            span: Span {
             start: Position {
              line: 16,
              column: 3,
             },
             end: Position {
              line: 16,
              column: 12,
             },
            },
           },
          ),
         ],
         to: List(
          List {
           elements: [
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "annoyme",
                 span: Span {
                  start: Position {
                   line: 17,
                   column: 6,
                  },
                  end: Position {
                   line: 17,
                   column: 13,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 17,
                column: 5,
               },
               end: Position {
                line: 17,
                column: 14,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "battattach",
                 span: Span {
                  start: Position {
                   line: 18,
                   column: 6,
                  },
                  end: Position {
                   line: 18,
                   column: 16,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 18,
                column: 5,
               },
               end: Position {
                line: 18,
                column: 17,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "battdetach",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 6,
                  },
                  end: Position {
                   line: 19,
                   column: 16,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 19,
                column: 5,
               },
               end: Position {
                line: 19,
                column: 17,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "changeme",
                 span: Span {
                  start: Position {
                   line: 20,
                   column: 6,
                  },
                  end: Position {
                   line: 20,
                   column: 14,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 20,
                column: 5,
               },
               end: Position {
                line: 20,
                column: 15,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "commfailure",
                 span: Span {
                  start: Position {
                   line: 21,
                   column: 6,
                  },
                  end: Position {
                   line: 21,
                   column: 17,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 21,
                column: 5,
               },
               end: Position {
                line: 21,
                column: 18,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "commok",
                 span: Span {
                  start: Position {
                   line: 22,
                   column: 6,
                  },
                  end: Position {
                   line: 22,
                   column: 12,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 22,
                column: 5,
               },
               end: Position {
                line: 22,
                column: 13,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "doreboot",
                 span: Span {
                  start: Position {
                   line: 23,
                   column: 6,
                  },
                  end: Position {
                   line: 23,
                   column: 14,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 23,
                column: 5,
               },
               end: Position {
                line: 23,
                column: 15,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "doshutdown",
                 span: Span {
                  start: Position {
                   line: 24,
                   column: 6,
                  },
                  end: Position {
                   line: 24,
                   column: 16,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 24,
                column: 5,
               },
               end: Position {
                line: 24,
                column: 17,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "emergency",
                 span: Span {
                  start: Position {
                   line: 25,
                   column: 6,
                  },
                  end: Position {
                   line: 25,
                   column: 15,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 25,
                column: 5,
               },
               end: Position {
                line: 25,
                column: 16,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "failing",
                 span: Span {
                  start: Position {
                   line: 26,
                   column: 6,
                  },
                  end: Position {
                   line: 26,
                   column: 13,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 26,
                column: 5,
               },
               end: Position {
                line: 26,
                column: 14,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "killpower",
                 span: Span {
                  start: Position {
                   line: 27,
                   column: 6,
                  },
                  end: Position {
                   line: 27,
                   column: 15,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 27,
                column: 5,
               },
               end: Position {
                line: 27,
                column: 16,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "loadlimit",
                 span: Span {
                  start: Position {
                   line: 28,
                   column: 6,
                  },
                  end: Position {
                   line: 28,
                   column: 15,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 28,
                column: 5,
               },
               end: Position {
                line: 28,
                column: 16,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "mainsback",
                 span: Span {
                  start: Position {
                   line: 29,
                   column: 6,
                  },
                  end: Position {
                   line: 29,
                   column: 15,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 29,
                column: 5,
               },
               end: Position {
                line: 29,
                column: 16,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "onbattery",
                 span: Span {
                  start: Position {
                   line: 30,
                   column: 6,
                  },
                  end: Position {
                   line: 30,
                   column: 15,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 30,
                column: 5,
               },
               end: Position {
                line: 30,
                column: 16,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "offbattery",
                 span: Span {
                  start: Position {
                   line: 31,
                   column: 6,
                  },
                  end: Position {
                   line: 31,
                   column: 16,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 31,
                column: 5,
               },
               end: Position {
                line: 31,
                column: 17,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "powerout",
                 span: Span {
                  start: Position {
                   line: 32,
                   column: 6,
                  },
                  end: Position {
                   line: 32,
                   column: 14,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 32,
                column: 5,
               },
               end: Position {
                line: 32,
                column: 15,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "remotedown",
                 span: Span {
                  start: Position {
                   line: 33,
                   column: 6,
                  },
                  end: Position {
                   line: 33,
                   column: 16,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 33,
                column: 5,
               },
               end: Position {
                line: 33,
                column: 17,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "runlimit",
                 span: Span {
                  start: Position {
                   line: 34,
                   column: 6,
                  },
                  end: Position {
                   line: 34,
                   column: 14,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 34,
                column: 5,
               },
               end: Position {
                line: 34,
                column: 15,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "timeout",
                 span: Span {
                  start: Position {
                   line: 35,
                   column: 6,
                  },
                  end: Position {
                   line: 35,
                   column: 13,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 35,
                column: 5,
               },
               end: Position {
                line: 35,
                column: 14,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "startselftest",
                 span: Span {
                  start: Position {
                   line: 36,
                   column: 6,
                  },
                  end: Position {
                   line: 36,
                   column: 19,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 36,
                column: 5,
               },
               end: Position {
                line: 36,
                column: 20,
               },
              },
             },
            ),
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "endselftest",
                 span: Span {
                  start: Position {
                   line: 37,
                   column: 6,
                  },
                  end: Position {
                   line: 37,
                   column: 17,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 37,
                column: 5,
               },
               end: Position {
                line: 37,
                column: 18,
               },
              },
             },
            ),
           ],
           span: Span {
            start: Position {
             line: 16,
             column: 15,
            },
            end: Position {
             line: 38,
             column: 4,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "shellCmdsForEventScript",
            span: Span {
             start: Position {
              line: 40,
              column: 3,
             },
             end: Position {
              line: 40,
              column: 26,
             },
            },
           },
          ),
         ],
         to: Function(
          Function {
           head: Simple(
            FunctionHeadSimple {
             identifier: "eventname",
            },
           ),
           body: Function(
            Function {
             head: Simple(
              FunctionHeadSimple {
               identifier: "commands",
              },
             ),
             body: IndentedString(
              IndentedString {
               parts: [
                Raw(
                 PartRaw {
                  content: "echo \"#!",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 41,
                    column: 13,
                   },
                  },
                 },
                ),
                Interpolation(
                 PartInterpolation {
                  expression: PropertyAccess(
                   PropertyAccess {
                    expression: Identifier(
                     Identifier {
                      id: "pkgs",
                      span: Span {
                       start: Position {
                        line: 41,
                        column: 15,
                       },
                       end: Position {
                        line: 41,
                        column: 19,
                       },
                      },
                     },
                    ),
                    attribute_path: [
                     Raw(
                      PartRaw {
                       content: "runtimeShell",
                       span: Span {
                        start: Position {
                         line: 41,
                         column: 20,
                        },
                        end: Position {
                         line: 41,
                         column: 32,
                        },
                       },
                      },
                     ),
                    ],
                    default: None,
                   },
                  ),
                 },
                ),
                Raw(
                 PartRaw {
                  content: "\" > \"$out/",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 41,
                    column: 43,
                   },
                  },
                 },
                ),
                Interpolation(
                 PartInterpolation {
                  expression: Identifier(
                   Identifier {
                    id: "eventname",
                    span: Span {
                     start: Position {
                      line: 41,
                      column: 45,
                     },
                     end: Position {
                      line: 41,
                      column: 54,
                     },
                    },
                   },
                  ),
                 },
                ),
                Raw(
                 PartRaw {
                  content: "\"\necho ",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 42,
                    column: 10,
                   },
                  },
                 },
                ),
                Raw(
                 PartRaw {
                  content: "'",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 42,
                    column: 11,
                   },
                  },
                 },
                ),
                Interpolation(
                 PartInterpolation {
                  expression: Identifier(
                   Identifier {
                    id: "commands",
                    span: Span {
                     start: Position {
                      line: 42,
                      column: 13,
                     },
                     end: Position {
                      line: 42,
                      column: 21,
                     },
                    },
                   },
                  ),
                 },
                ),
                Raw(
                 PartRaw {
                  content: "' >> \"$out/",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 42,
                    column: 33,
                   },
                  },
                 },
                ),
                Interpolation(
                 PartInterpolation {
                  expression: Identifier(
                   Identifier {
                    id: "eventname",
                    span: Span {
                     start: Position {
                      line: 42,
                      column: 35,
                     },
                     end: Position {
                      line: 42,
                      column: 44,
                     },
                    },
                   },
                  ),
                 },
                ),
                Raw(
                 PartRaw {
                  content: "\"\nchmod a+x \"$out/",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 43,
                    column: 21,
                   },
                  },
                 },
                ),
                Interpolation(
                 PartInterpolation {
                  expression: Identifier(
                   Identifier {
                    id: "eventname",
                    span: Span {
                     start: Position {
                      line: 43,
                      column: 23,
                     },
                     end: Position {
                      line: 43,
                      column: 32,
                     },
                    },
                   },
                  ),
                 },
                ),
                Raw(
                 PartRaw {
                  content: "\"\n",
                  span: Span {
                   start: Position {
                    line: 41,
                    column: 1,
                   },
                   end: Position {
                    line: 44,
                    column: 3,
                   },
                  },
                 },
                ),
               ],
               span: Span {
                start: Position {
                 line: 40,
                 column: 50,
                },
                end: Position {
                 line: 44,
                 column: 5,
                },
               },
              },
             ),
             span: Span {
              start: Position {
               line: 40,
               column: 40,
              },
              end: Position {
               line: 44,
               column: 5,
              },
             },
            },
           ),
           span: Span {
            start: Position {
             line: 40,
             column: 29,
            },
            end: Position {
             line: 44,
             column: 5,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "eventToShellCmds",
            span: Span {
             start: Position {
              line: 46,
              column: 3,
             },
             end: Position {
              line: 46,
              column: 19,
             },
            },
           },
          ),
         ],
         to: Function(
          Function {
           head: Simple(
            FunctionHeadSimple {
             identifier: "event",
            },
           ),
           body: IfThenElse(
            IfThenElse {
             predicate: FunctionApplication(
              FunctionApplication {
               function: PropertyAccess(
                PropertyAccess {
                 expression: Identifier(
                  Identifier {
                   id: "builtins",
                   span: Span {
                    start: Position {
                     line: 46,
                     column: 32,
                    },
                    end: Position {
                     line: 46,
                     column: 40,
                    },
                   },
                  },
                 ),
                 attribute_path: [
                  Raw(
                   PartRaw {
                    content: "hasAttr",
                    span: Span {
                     start: Position {
                      line: 46,
                      column: 41,
                     },
                     end: Position {
                      line: 46,
                      column: 48,
                     },
                    },
                   },
                  ),
                 ],
                 default: None,
                },
               ),
               arguments: [
                Identifier(
                 Identifier {
                  id: "event",
                  span: Span {
                   start: Position {
                    line: 46,
                    column: 49,
                   },
                   end: Position {
                    line: 46,
                    column: 54,
                   },
                  },
                 },
                ),
                PropertyAccess(
                 PropertyAccess {
                  expression: Identifier(
                   Identifier {
                    id: "cfg",
                    span: Span {
                     start: Position {
                      line: 46,
                      column: 55,
                     },
                     end: Position {
                      line: 46,
                      column: 58,
                     },
                    },
                   },
                  ),
                  attribute_path: [
                   Raw(
                    PartRaw {
                     content: "hooks",
                     span: Span {
                      start: Position {
                       line: 46,
                       column: 59,
                      },
                      end: Position {
                       line: 46,
                       column: 64,
                      },
                     },
                    },
                   ),
                  ],
                  default: None,
                 },
                ),
               ],
              },
             ),
             then: FunctionApplication(
              FunctionApplication {
               function: Identifier(
                Identifier {
                 id: "shellCmdsForEventScript",
                 span: Span {
                  start: Position {
                   line: 46,
                   column: 71,
                  },
                  end: Position {
                   line: 46,
                   column: 94,
                  },
                 },
                },
               ),
               arguments: [
                Identifier(
                 Identifier {
                  id: "event",
                  span: Span {
                   start: Position {
                    line: 46,
                    column: 95,
                   },
                   end: Position {
                    line: 46,
                    column: 100,
                   },
                  },
                 },
                ),
                FunctionApplication(
                 FunctionApplication {
                  function: PropertyAccess(
                   PropertyAccess {
                    expression: Identifier(
                     Identifier {
                      id: "builtins",
                      span: Span {
                       start: Position {
                        line: 46,
                        column: 102,
                       },
                       end: Position {
                        line: 46,
                        column: 110,
                       },
                      },
                     },
                    ),
                    attribute_path: [
                     Raw(
                      PartRaw {
                       content: "getAttr",
                       span: Span {
                        start: Position {
                         line: 46,
                         column: 111,
                        },
                        end: Position {
                         line: 46,
                         column: 118,
                        },
                       },
                      },
                     ),
                    ],
                    default: None,
                   },
                  ),
                  arguments: [
                   Identifier(
                    Identifier {
                     id: "event",
                     span: Span {
                      start: Position {
                       line: 46,
                       column: 119,
                      },
                      end: Position {
                       line: 46,
                       column: 124,
                      },
                     },
                    },
                   ),
                   PropertyAccess(
                    PropertyAccess {
                     expression: Identifier(
                      Identifier {
                       id: "cfg",
                       span: Span {
                        start: Position {
                         line: 46,
                         column: 125,
                        },
                        end: Position {
                         line: 46,
                         column: 128,
                        },
                       },
                      },
                     ),
                     attribute_path: [
                      Raw(
                       PartRaw {
                        content: "hooks",
                        span: Span {
                         start: Position {
                          line: 46,
                          column: 129,
                         },
                         end: Position {
                          line: 46,
                          column: 134,
                         },
                        },
                       },
                      ),
                     ],
                     default: None,
                    },
                   ),
                  ],
                 },
                ),
               ],
              },
             ),
             else_: String(
              String_ {
               parts: [],
               span: Span {
                start: Position {
                 line: 46,
                 column: 142,
                },
                end: Position {
                 line: 46,
                 column: 144,
                },
               },
              },
             ),
             span: Span {
              start: Position {
               line: 46,
               column: 29,
              },
              end: Position {
               line: 46,
               column: 144,
              },
             },
            },
           ),
           span: Span {
            start: Position {
             line: 46,
             column: 22,
            },
            end: Position {
             line: 46,
             column: 144,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "scriptDir",
            span: Span {
             start: Position {
              line: 48,
              column: 3,
             },
             end: Position {
              line: 48,
              column: 12,
             },
            },
           },
          ),
         ],
         to: FunctionApplication(
          FunctionApplication {
           function: PropertyAccess(
            PropertyAccess {
             expression: Identifier(
              Identifier {
               id: "pkgs",
               span: Span {
                start: Position {
                 line: 48,
                 column: 15,
                },
                end: Position {
                 line: 48,
                 column: 19,
                },
               },
              },
             ),
             attribute_path: [
              Raw(
               PartRaw {
                content: "runCommand",
                span: Span {
                 start: Position {
                  line: 48,
                  column: 20,
                 },
                 end: Position {
                  line: 48,
                  column: 30,
                 },
                },
               },
              ),
             ],
             default: None,
            },
           ),
           arguments: [
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "apcupsd-scriptdir",
                 span: Span {
                  start: Position {
                   line: 48,
                   column: 32,
                  },
                  end: Position {
                   line: 48,
                   column: 49,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 48,
                column: 31,
               },
               end: Position {
                line: 48,
                column: 50,
               },
              },
             },
            ),
            Map(
             Map {
              recursive: false,
              bindings: [
               KeyValue(
                BindingKeyValue {
                 from: [
                  Raw(
                   PartRaw {
                    content: "preferLocalBuild",
                    span: Span {
                     start: Position {
                      line: 48,
                      column: 53,
                     },
                     end: Position {
                      line: 48,
                      column: 69,
                     },
                    },
                   },
                  ),
                 ],
                 to: Identifier(
                  Identifier {
                   id: "true",
                   span: Span {
                    start: Position {
                     line: 48,
                     column: 72,
                    },
                    end: Position {
                     line: 48,
                     column: 76,
                    },
                   },
                  },
                 ),
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 48,
                column: 51,
               },
               end: Position {
                line: 48,
                column: 79,
               },
              },
             },
            ),
            BinaryOperation(
             BinaryOperation {
              left: IndentedString(
               IndentedString {
                parts: [
                 Raw(
                  PartRaw {
                   content: "mkdir \"$out\"\n# Copy SCRIPTDIR from apcupsd package\ncp -r ",
                   span: Span {
                    start: Position {
                     line: 49,
                     column: 1,
                    },
                    end: Position {
                     line: 51,
                     column: 11,
                    },
                   },
                  },
                 ),
                 Interpolation(
                  PartInterpolation {
                   expression: PropertyAccess(
                    PropertyAccess {
                     expression: Identifier(
                      Identifier {
                       id: "pkgs",
                       span: Span {
                        start: Position {
                         line: 51,
                         column: 13,
                        },
                        end: Position {
                         line: 51,
                         column: 17,
                        },
                       },
                      },
                     ),
                     attribute_path: [
                      Raw(
                       PartRaw {
                        content: "apcupsd",
                        span: Span {
                         start: Position {
                          line: 51,
                          column: 18,
                         },
                         end: Position {
                          line: 51,
                          column: 25,
                         },
                        },
                       },
                      ),
                     ],
                     default: None,
                    },
                   ),
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "/etc/apcupsd/* \"$out\"/\n# Make the files writeable (nix will unset the write bits afterwards)\nchmod u+w \"$out\"/*\n# Remove the sample event notification scripts, because they don't work\n# anyways (they try to send mail to \"root\" with the \"mail\" command)\n(cd \"$out\" && rm changeme commok commfailure onbattery offbattery)\n# Remove the sample apcupsd.conf file (we're generating our own)\nrm \"$out/apcupsd.conf\"\n# Set the SCRIPTDIR= line in apccontrol to the dir we're creating now\nsed -i -e \"s|^SCRIPTDIR=.*|SCRIPTDIR=$out|\" \"$out/apccontrol\"\n",
                   span: Span {
                    start: Position {
                     line: 49,
                     column: 1,
                    },
                    end: Position {
                     line: 61,
                     column: 5,
                    },
                   },
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 48,
                  column: 81,
                 },
                 end: Position {
                  line: 61,
                  column: 7,
                 },
                },
               },
              ),
              operator: Addition,
              right: FunctionApplication(
               FunctionApplication {
                function: Identifier(
                 Identifier {
                  id: "concatStringsSep",
                  span: Span {
                   start: Position {
                    line: 61,
                    column: 10,
                   },
                   end: Position {
                    line: 61,
                    column: 26,
                   },
                  },
                 },
                ),
                arguments: [
                 String(
                  String_ {
                   parts: [
                    Raw(
                     PartRaw {
                      content: "\n",
                      span: Span {
                       start: Position {
                        line: 61,
                        column: 28,
                       },
                       end: Position {
                        line: 61,
                        column: 30,
                       },
                      },
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 61,
                     column: 27,
                    },
                    end: Position {
                     line: 61,
                     column: 31,
                    },
                   },
                  },
                 ),
                 FunctionApplication(
                  FunctionApplication {
                   function: Identifier(
                    Identifier {
                     id: "map",
                     span: Span {
                      start: Position {
                       line: 61,
                       column: 33,
                      },
                      end: Position {
                       line: 61,
                       column: 36,
                      },
                     },
                    },
                   ),
                   arguments: [
                    Identifier(
                     Identifier {
                      id: "eventToShellCmds",
                      span: Span {
                       start: Position {
                        line: 61,
                        column: 37,
                       },
                       end: Position {
                        line: 61,
                        column: 53,
                       },
                      },
                     },
                    ),
                    Identifier(
                     Identifier {
                      id: "eventList",
                      span: Span {
                       start: Position {
                        line: 61,
                        column: 54,
                       },
                       end: Position {
                        line: 61,
                        column: 63,
                       },
                      },
                     },
                    ),
                   ],
                  },
                 ),
                ],
               },
              ),
             },
            ),
           ],
          },
         ),
        },
       ),
      ],
      target: Map(
       Map {
        recursive: false,
        bindings: [
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "options",
              span: Span {
               start: Position {
                line: 71,
                column: 3,
               },
               end: Position {
                line: 71,
                column: 10,
               },
              },
             },
            ),
           ],
           to: Map(
            Map {
             recursive: false,
             bindings: [
              KeyValue(
               BindingKeyValue {
                from: [
                 Raw(
                  PartRaw {
                   content: "services",
                   span: Span {
                    start: Position {
                     line: 73,
                     column: 5,
                    },
                    end: Position {
                     line: 73,
                     column: 13,
                    },
                   },
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "apcupsd",
                   span: Span {
                    start: Position {
                     line: 73,
                     column: 14,
                    },
                    end: Position {
                     line: 73,
                     column: 21,
                    },
                   },
                  },
                 ),
                ],
                to: Map(
                 Map {
                  recursive: false,
                  bindings: [
                   KeyValue(
                    BindingKeyValue {
                     from: [
                      Raw(
                       PartRaw {
                        content: "enable",
                        span: Span {
                         start: Position {
                          line: 75,
                          column: 7,
                         },
                         end: Position {
                          line: 75,
                          column: 13,
                         },
                        },
                       },
                      ),
                     ],
                     to: FunctionApplication(
                      FunctionApplication {
                       function: Identifier(
                        Identifier {
                         id: "mkOption",
                         span: Span {
                          start: Position {
                           line: 75,
                           column: 16,
                          },
                          end: Position {
                           line: 75,
                           column: 24,
                          },
                         },
                        },
                       ),
                       arguments: [
                        Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "default",
                                span: Span {
                                 start: Position {
                                  line: 76,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 76,
                                  column: 16,
                                 },
                                },
                               },
                              ),
                             ],
                             to: Identifier(
                              Identifier {
                               id: "false",
                               span: Span {
                                start: Position {
                                 line: 76,
                                 column: 19,
                                },
                                end: Position {
                                 line: 76,
                                 column: 24,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "type",
                                span: Span {
                                 start: Position {
                                  line: 77,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 77,
                                  column: 13,
                                 },
                                },
                               },
                              ),
                             ],
                             to: PropertyAccess(
                              PropertyAccess {
                               expression: Identifier(
                                Identifier {
                                 id: "types",
                                 span: Span {
                                  start: Position {
                                   line: 77,
                                   column: 16,
                                  },
                                  end: Position {
                                   line: 77,
                                   column: 21,
                                  },
                                 },
                                },
                               ),
                               attribute_path: [
                                Raw(
                                 PartRaw {
                                  content: "bool",
                                  span: Span {
                                   start: Position {
                                    line: 77,
                                    column: 22,
                                   },
                                   end: Position {
                                    line: 77,
                                    column: 26,
                                   },
                                  },
                                 },
                                ),
                               ],
                               default: None,
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "description",
                                span: Span {
                                 start: Position {
                                  line: 78,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 78,
                                  column: 20,
                                 },
                                },
                               },
                              ),
                             ],
                             to: FunctionApplication(
                              FunctionApplication {
                               function: PropertyAccess(
                                PropertyAccess {
                                 expression: Identifier(
                                  Identifier {
                                   id: "lib",
                                   span: Span {
                                    start: Position {
                                     line: 78,
                                     column: 23,
                                    },
                                    end: Position {
                                     line: 78,
                                     column: 26,
                                    },
                                   },
                                  },
                                 ),
                                 attribute_path: [
                                  Raw(
                                   PartRaw {
                                    content: "mdDoc",
                                    span: Span {
                                     start: Position {
                                      line: 78,
                                      column: 27,
                                     },
                                     end: Position {
                                      line: 78,
                                      column: 32,
                                     },
                                    },
                                   },
                                  ),
                                 ],
                                 default: None,
                                },
                               ),
                               arguments: [
                                IndentedString(
                                 IndentedString {
                                  parts: [
                                   Raw(
                                    PartRaw {
                                     content: "Whether to enable the APC UPS daemon. apcupsd monitors your UPS and\npermits orderly shutdown of your computer in the event of a power\nfailure. User manual: http://www.apcupsd.com/manual/manual.html.\nNote that apcupsd runs as root (to allow shutdown of computer).\nYou can check the status of your UPS with the \"apcaccess\" command.\n",
                                     span: Span {
                                      start: Position {
                                       line: 79,
                                       column: 1,
                                      },
                                      end: Position {
                                       line: 84,
                                       column: 9,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                  span: Span {
                                   start: Position {
                                    line: 78,
                                    column: 33,
                                   },
                                   end: Position {
                                    line: 84,
                                    column: 11,
                                   },
                                  },
                                 },
                                ),
                               ],
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 75,
                            column: 25,
                           },
                           end: Position {
                            line: 85,
                            column: 8,
                           },
                          },
                         },
                        ),
                       ],
                      },
                     ),
                    },
                   ),
                   KeyValue(
                    BindingKeyValue {
                     from: [
                      Raw(
                       PartRaw {
                        content: "configText",
                        span: Span {
                         start: Position {
                          line: 87,
                          column: 7,
                         },
                         end: Position {
                          line: 87,
                          column: 17,
                         },
                        },
                       },
                      ),
                     ],
                     to: FunctionApplication(
                      FunctionApplication {
                       function: Identifier(
                        Identifier {
                         id: "mkOption",
                         span: Span {
                          start: Position {
                           line: 87,
                           column: 20,
                          },
                          end: Position {
                           line: 87,
                           column: 28,
                          },
                         },
                        },
                       ),
                       arguments: [
                        Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "default",
                                span: Span {
                                 start: Position {
                                  line: 88,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 88,
                                  column: 16,
                                 },
                                },
                               },
                              ),
                             ],
                             to: IndentedString(
                              IndentedString {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "UPSTYPE usb\nNISIP 127.0.0.1\nBATTERYLEVEL 50\nMINUTES 5\n",
                                  span: Span {
                                   start: Position {
                                    line: 89,
                                    column: 1,
                                   },
                                   end: Position {
                                    line: 93,
                                    column: 9,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 88,
                                 column: 19,
                                },
                                end: Position {
                                 line: 93,
                                 column: 11,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "type",
                                span: Span {
                                 start: Position {
                                  line: 94,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 94,
                                  column: 13,
                                 },
                                },
                               },
                              ),
                             ],
                             to: PropertyAccess(
                              PropertyAccess {
                               expression: Identifier(
                                Identifier {
                                 id: "types",
                                 span: Span {
                                  start: Position {
                                   line: 94,
                                   column: 16,
                                  },
                                  end: Position {
                                   line: 94,
                                   column: 21,
                                  },
                                 },
                                },
                               ),
                               attribute_path: [
                                Raw(
                                 PartRaw {
                                  content: "lines",
                                  span: Span {
                                   start: Position {
                                    line: 94,
                                    column: 22,
                                   },
                                   end: Position {
                                    line: 94,
                                    column: 27,
                                   },
                                  },
                                 },
                                ),
                               ],
                               default: None,
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "description",
                                span: Span {
                                 start: Position {
                                  line: 95,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 95,
                                  column: 20,
                                 },
                                },
                               },
                              ),
                             ],
                             to: FunctionApplication(
                              FunctionApplication {
                               function: PropertyAccess(
                                PropertyAccess {
                                 expression: Identifier(
                                  Identifier {
                                   id: "lib",
                                   span: Span {
                                    start: Position {
                                     line: 95,
                                     column: 23,
                                    },
                                    end: Position {
                                     line: 95,
                                     column: 26,
                                    },
                                   },
                                  },
                                 ),
                                 attribute_path: [
                                  Raw(
                                   PartRaw {
                                    content: "mdDoc",
                                    span: Span {
                                     start: Position {
                                      line: 95,
                                      column: 27,
                                     },
                                     end: Position {
                                      line: 95,
                                      column: 32,
                                     },
                                    },
                                   },
                                  ),
                                 ],
                                 default: None,
                                },
                               ),
                               arguments: [
                                IndentedString(
                                 IndentedString {
                                  parts: [
                                   Raw(
                                    PartRaw {
                                     content: "Contents of the runtime configuration file, apcupsd.conf. The default\nsettings makes apcupsd autodetect USB UPSes, limit network access to\nlocalhost and shutdown the system when the battery level is below 50\npercent, or when the UPS has calculated that it has 5 minutes or less\nof remaining power-on time. See man apcupsd.conf for details.\n",
                                     span: Span {
                                      start: Position {
                                       line: 96,
                                       column: 1,
                                      },
                                      end: Position {
                                       line: 101,
                                       column: 9,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                  span: Span {
                                   start: Position {
                                    line: 95,
                                    column: 33,
                                   },
                                   end: Position {
                                    line: 101,
                                    column: 11,
                                   },
                                  },
                                 },
                                ),
                               ],
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 87,
                            column: 29,
                           },
                           end: Position {
                            line: 102,
                            column: 8,
                           },
                          },
                         },
                        ),
                       ],
                      },
                     ),
                    },
                   ),
                   KeyValue(
                    BindingKeyValue {
                     from: [
                      Raw(
                       PartRaw {
                        content: "hooks",
                        span: Span {
                         start: Position {
                          line: 104,
                          column: 7,
                         },
                         end: Position {
                          line: 104,
                          column: 12,
                         },
                        },
                       },
                      ),
                     ],
                     to: FunctionApplication(
                      FunctionApplication {
                       function: Identifier(
                        Identifier {
                         id: "mkOption",
                         span: Span {
                          start: Position {
                           line: 104,
                           column: 15,
                          },
                          end: Position {
                           line: 104,
                           column: 23,
                          },
                         },
                        },
                       ),
                       arguments: [
                        Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "default",
                                span: Span {
                                 start: Position {
                                  line: 105,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 105,
                                  column: 16,
                                 },
                                },
                               },
                              ),
                             ],
                             to: Map(
                              Map {
                               recursive: false,
                               bindings: [],
                               span: Span {
                                start: Position {
                                 line: 105,
                                 column: 19,
                                },
                                end: Position {
                                 line: 105,
                                 column: 21,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "example",
                                span: Span {
                                 start: Position {
                                  line: 106,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 106,
                                  column: 16,
                                 },
                                },
                               },
                              ),
                             ],
                             to: Map(
                              Map {
                               recursive: false,
                               bindings: [
                                KeyValue(
                                 BindingKeyValue {
                                  from: [
                                   Raw(
                                    PartRaw {
                                     content: "doshutdown",
                                     span: Span {
                                      start: Position {
                                       line: 107,
                                       column: 11,
                                      },
                                      end: Position {
                                       line: 107,
                                       column: 21,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                  to: String(
                                   String_ {
                                    parts: [
                                     Raw(
                                      PartRaw {
                                       content: "# shell commands to notify that the computer is shutting down",
                                       span: Span {
                                        start: Position {
                                         line: 107,
                                         column: 25,
                                        },
                                        end: Position {
                                         line: 107,
                                         column: 86,
                                        },
                                       },
                                      },
                                     ),
                                    ],
                                    span: Span {
                                     start: Position {
                                      line: 107,
                                      column: 24,
                                     },
                                     end: Position {
                                      line: 107,
                                      column: 87,
                                     },
                                    },
                                   },
                                  ),
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 106,
                                 column: 19,
                                },
                                end: Position {
                                 line: 108,
                                 column: 10,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "type",
                                span: Span {
                                 start: Position {
                                  line: 109,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 109,
                                  column: 13,
                                 },
                                },
                               },
                              ),
                             ],
                             to: FunctionApplication(
                              FunctionApplication {
                               function: PropertyAccess(
                                PropertyAccess {
                                 expression: Identifier(
                                  Identifier {
                                   id: "types",
                                   span: Span {
                                    start: Position {
                                     line: 109,
                                     column: 16,
                                    },
                                    end: Position {
                                     line: 109,
                                     column: 21,
                                    },
                                   },
                                  },
                                 ),
                                 attribute_path: [
                                  Raw(
                                   PartRaw {
                                    content: "attrsOf",
                                    span: Span {
                                     start: Position {
                                      line: 109,
                                      column: 22,
                                     },
                                     end: Position {
                                      line: 109,
                                      column: 29,
                                     },
                                    },
                                   },
                                  ),
                                 ],
                                 default: None,
                                },
                               ),
                               arguments: [
                                PropertyAccess(
                                 PropertyAccess {
                                  expression: Identifier(
                                   Identifier {
                                    id: "types",
                                    span: Span {
                                     start: Position {
                                      line: 109,
                                      column: 30,
                                     },
                                     end: Position {
                                      line: 109,
                                      column: 35,
                                     },
                                    },
                                   },
                                  ),
                                  attribute_path: [
                                   Raw(
                                    PartRaw {
                                     content: "lines",
                                     span: Span {
                                      start: Position {
                                       line: 109,
                                       column: 36,
                                      },
                                      end: Position {
                                       line: 109,
                                       column: 41,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                  default: None,
                                 },
                                ),
                               ],
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "description",
                                span: Span {
                                 start: Position {
                                  line: 110,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 110,
                                  column: 20,
                                 },
                                },
                               },
                              ),
                             ],
                             to: FunctionApplication(
                              FunctionApplication {
                               function: PropertyAccess(
                                PropertyAccess {
                                 expression: Identifier(
                                  Identifier {
                                   id: "lib",
                                   span: Span {
                                    start: Position {
                                     line: 110,
                                     column: 23,
                                    },
                                    end: Position {
                                     line: 110,
                                     column: 26,
                                    },
                                   },
                                  },
                                 ),
                                 attribute_path: [
                                  Raw(
                                   PartRaw {
                                    content: "mdDoc",
                                    span: Span {
                                     start: Position {
                                      line: 110,
                                      column: 27,
                                     },
                                     end: Position {
                                      line: 110,
                                      column: 32,
                                     },
                                    },
                                   },
                                  ),
                                 ],
                                 default: None,
                                },
                               ),
                               arguments: [
                                IndentedString(
                                 IndentedString {
                                  parts: [
                                   Raw(
                                    PartRaw {
                                     content: "Each attribute in this option names an apcupsd event and the string\nvalue it contains will be executed in a shell, in response to that\nevent (prior to the default action). See \"man apccontrol\" for the\nlist of events and what they represent.\n\nA hook script can stop apccontrol from doing its default action by\nexiting with value 99. Do not do this unless you know what you're\ndoing.\n",
                                     span: Span {
                                      start: Position {
                                       line: 111,
                                       column: 1,
                                      },
                                      end: Position {
                                       line: 119,
                                       column: 9,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                  span: Span {
                                   start: Position {
                                    line: 110,
                                    column: 33,
                                   },
                                   end: Position {
                                    line: 119,
                                    column: 11,
                                   },
                                  },
                                 },
                                ),
                               ],
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 104,
                            column: 24,
                           },
                           end: Position {
                            line: 120,
                            column: 8,
                           },
                          },
                         },
                        ),
                       ],
                      },
                     ),
                    },
                   ),
                  ],
                  span: Span {
                   start: Position {
                    line: 73,
                    column: 24,
                   },
                   end: Position {
                    line: 122,
                    column: 6,
                   },
                  },
                 },
                ),
               },
              ),
             ],
             span: Span {
              start: Position {
               line: 71,
               column: 13,
              },
              end: Position {
               line: 124,
               column: 4,
              },
             },
            },
           ),
          },
         ),
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "config",
              span: Span {
               start: Position {
                line: 129,
                column: 3,
               },
               end: Position {
                line: 129,
                column: 9,
               },
              },
             },
            ),
           ],
           to: FunctionApplication(
            FunctionApplication {
             function: Identifier(
              Identifier {
               id: "mkIf",
               span: Span {
                start: Position {
                 line: 129,
                 column: 12,
                },
                end: Position {
                 line: 129,
                 column: 16,
                },
               },
              },
             ),
             arguments: [
              PropertyAccess(
               PropertyAccess {
                expression: Identifier(
                 Identifier {
                  id: "cfg",
                  span: Span {
                   start: Position {
                    line: 129,
                    column: 17,
                   },
                   end: Position {
                    line: 129,
                    column: 20,
                   },
                  },
                 },
                ),
                attribute_path: [
                 Raw(
                  PartRaw {
                   content: "enable",
                   span: Span {
                    start: Position {
                     line: 129,
                     column: 21,
                    },
                    end: Position {
                     line: 129,
                     column: 27,
                    },
                   },
                  },
                 ),
                ],
                default: None,
               },
              ),
              Map(
               Map {
                recursive: false,
                bindings: [
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "assertions",
                      span: Span {
                       start: Position {
                        line: 131,
                        column: 5,
                       },
                       end: Position {
                        line: 131,
                        column: 15,
                       },
                      },
                     },
                    ),
                   ],
                   to: List(
                    List {
                     elements: [
                      Map(
                       Map {
                        recursive: false,
                        bindings: [
                         KeyValue(
                          BindingKeyValue {
                           from: [
                            Raw(
                             PartRaw {
                              content: "assertion",
                              span: Span {
                               start: Position {
                                line: 132,
                                column: 7,
                               },
                               end: Position {
                                line: 132,
                                column: 16,
                               },
                              },
                             },
                            ),
                           ],
                           to: LetIn(
                            LetIn {
                             bindings: [
                              KeyValue(
                               BindingKeyValue {
                                from: [
                                 Raw(
                                  PartRaw {
                                   content: "hooknames",
                                   span: Span {
                                    start: Position {
                                     line: 132,
                                     column: 23,
                                    },
                                    end: Position {
                                     line: 132,
                                     column: 32,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                to: FunctionApplication(
                                 FunctionApplication {
                                  function: PropertyAccess(
                                   PropertyAccess {
                                    expression: Identifier(
                                     Identifier {
                                      id: "builtins",
                                      span: Span {
                                       start: Position {
                                        line: 132,
                                        column: 35,
                                       },
                                       end: Position {
                                        line: 132,
                                        column: 43,
                                       },
                                      },
                                     },
                                    ),
                                    attribute_path: [
                                     Raw(
                                      PartRaw {
                                       content: "attrNames",
                                       span: Span {
                                        start: Position {
                                         line: 132,
                                         column: 44,
                                        },
                                        end: Position {
                                         line: 132,
                                         column: 53,
                                        },
                                       },
                                      },
                                     ),
                                    ],
                                    default: None,
                                   },
                                  ),
                                  arguments: [
                                   PropertyAccess(
                                    PropertyAccess {
                                     expression: Identifier(
                                      Identifier {
                                       id: "cfg",
                                       span: Span {
                                        start: Position {
                                         line: 132,
                                         column: 54,
                                        },
                                        end: Position {
                                         line: 132,
                                         column: 57,
                                        },
                                       },
                                      },
                                     ),
                                     attribute_path: [
                                      Raw(
                                       PartRaw {
                                        content: "hooks",
                                        span: Span {
                                         start: Position {
                                          line: 132,
                                          column: 58,
                                         },
                                         end: Position {
                                          line: 132,
                                          column: 63,
                                         },
                                        },
                                       },
                                      ),
                                     ],
                                     default: None,
                                    },
                                   ),
                                  ],
                                 },
                                ),
                               },
                              ),
                             ],
                             target: FunctionApplication(
                              FunctionApplication {
                               function: Identifier(
                                Identifier {
                                 id: "all",
                                 span: Span {
                                  start: Position {
                                   line: 132,
                                   column: 68,
                                  },
                                  end: Position {
                                   line: 132,
                                   column: 71,
                                  },
                                 },
                                },
                               ),
                               arguments: [
                                Function(
                                 Function {
                                  head: Simple(
                                   FunctionHeadSimple {
                                    identifier: "x",
                                   },
                                  ),
                                  body: FunctionApplication(
                                   FunctionApplication {
                                    function: Identifier(
                                     Identifier {
                                      id: "elem",
                                      span: Span {
                                       start: Position {
                                        line: 132,
                                        column: 76,
                                       },
                                       end: Position {
                                        line: 132,
                                        column: 80,
                                       },
                                      },
                                     },
                                    ),
                                    arguments: [
                                     Identifier(
                                      Identifier {
                                       id: "x",
                                       span: Span {
                                        start: Position {
                                         line: 132,
                                         column: 81,
                                        },
                                        end: Position {
                                         line: 132,
                                         column: 82,
                                        },
                                       },
                                      },
                                     ),
                                     Identifier(
                                      Identifier {
                                       id: "eventList",
                                       span: Span {
                                        start: Position {
                                         line: 132,
                                         column: 83,
                                        },
                                        end: Position {
                                         line: 132,
                                         column: 92,
                                        },
                                       },
                                      },
                                     ),
                                    ],
                                   },
                                  ),
                                  span: Span {
                                   start: Position {
                                    line: 132,
                                    column: 73,
                                   },
                                   end: Position {
                                    line: 132,
                                    column: 92,
                                   },
                                  },
                                 },
                                ),
                                Identifier(
                                 Identifier {
                                  id: "hooknames",
                                  span: Span {
                                   start: Position {
                                    line: 132,
                                    column: 94,
                                   },
                                   end: Position {
                                    line: 132,
                                    column: 103,
                                   },
                                  },
                                 },
                                ),
                               ],
                              },
                             ),
                             span: Span {
                              start: Position {
                               line: 132,
                               column: 19,
                              },
                              end: Position {
                               line: 132,
                               column: 103,
                              },
                             },
                            },
                           ),
                          },
                         ),
                         KeyValue(
                          BindingKeyValue {
                           from: [
                            Raw(
                             PartRaw {
                              content: "message",
                              span: Span {
                               start: Position {
                                line: 133,
                                column: 7,
                               },
                               end: Position {
                                line: 133,
                                column: 14,
                               },
                              },
                             },
                            ),
                           ],
                           to: IndentedString(
                            IndentedString {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "One (or more) attribute names in services.apcupsd.hooks are invalid.\nCurrent attribute names: ",
                                span: Span {
                                 start: Position {
                                  line: 134,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 135,
                                  column: 34,
                                 },
                                },
                               },
                              ),
                              Interpolation(
                               PartInterpolation {
                                expression: FunctionApplication(
                                 FunctionApplication {
                                  function: Identifier(
                                   Identifier {
                                    id: "toString",
                                    span: Span {
                                     start: Position {
                                      line: 135,
                                      column: 36,
                                     },
                                     end: Position {
                                      line: 135,
                                      column: 44,
                                     },
                                    },
                                   },
                                  ),
                                  arguments: [
                                   FunctionApplication(
                                    FunctionApplication {
                                     function: PropertyAccess(
                                      PropertyAccess {
                                       expression: Identifier(
                                        Identifier {
                                         id: "builtins",
                                         span: Span {
                                          start: Position {
                                           line: 135,
                                           column: 46,
                                          },
                                          end: Position {
                                           line: 135,
                                           column: 54,
                                          },
                                         },
                                        },
                                       ),
                                       attribute_path: [
                                        Raw(
                                         PartRaw {
                                          content: "attrNames",
                                          span: Span {
                                           start: Position {
                                            line: 135,
                                            column: 55,
                                           },
                                           end: Position {
                                            line: 135,
                                            column: 64,
                                           },
                                          },
                                         },
                                        ),
                                       ],
                                       default: None,
                                      },
                                     ),
                                     arguments: [
                                      PropertyAccess(
                                       PropertyAccess {
                                        expression: Identifier(
                                         Identifier {
                                          id: "cfg",
                                          span: Span {
                                           start: Position {
                                            line: 135,
                                            column: 65,
                                           },
                                           end: Position {
                                            line: 135,
                                            column: 68,
                                           },
                                          },
                                         },
                                        ),
                                        attribute_path: [
                                         Raw(
                                          PartRaw {
                                           content: "hooks",
                                           span: Span {
                                            start: Position {
                                             line: 135,
                                             column: 69,
                                            },
                                            end: Position {
                                             line: 135,
                                             column: 74,
                                            },
                                           },
                                          },
                                         ),
                                        ],
                                        default: None,
                                       },
                                      ),
                                     ],
                                    },
                                   ),
                                  ],
                                 },
                                ),
                               },
                              ),
                              Raw(
                               PartRaw {
                                content: "\nValid attribute names  : ",
                                span: Span {
                                 start: Position {
                                  line: 134,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 136,
                                  column: 34,
                                 },
                                },
                               },
                              ),
                              Interpolation(
                               PartInterpolation {
                                expression: FunctionApplication(
                                 FunctionApplication {
                                  function: Identifier(
                                   Identifier {
                                    id: "toString",
                                    span: Span {
                                     start: Position {
                                      line: 136,
                                      column: 36,
                                     },
                                     end: Position {
                                      line: 136,
                                      column: 44,
                                     },
                                    },
                                   },
                                  ),
                                  arguments: [
                                   Identifier(
                                    Identifier {
                                     id: "eventList",
                                     span: Span {
                                      start: Position {
                                       line: 136,
                                       column: 45,
                                      },
                                      end: Position {
                                       line: 136,
                                       column: 54,
                                      },
                                     },
                                    },
                                   ),
                                  ],
                                 },
                                ),
                               },
                              ),
                              Raw(
                               PartRaw {
                                content: "\n",
                                span: Span {
                                 start: Position {
                                  line: 134,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 137,
                                  column: 7,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 133,
                               column: 17,
                              },
                              end: Position {
                               line: 137,
                               column: 9,
                              },
                             },
                            },
                           ),
                          },
                         ),
                        ],
                        span: Span {
                         start: Position {
                          line: 131,
                          column: 20,
                         },
                         end: Position {
                          line: 138,
                          column: 6,
                         },
                        },
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 131,
                       column: 18,
                      },
                      end: Position {
                       line: 138,
                       column: 8,
                      },
                     },
                    },
                   ),
                  },
                 ),
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "environment",
                      span: Span {
                       start: Position {
                        line: 141,
                        column: 5,
                       },
                       end: Position {
                        line: 141,
                        column: 16,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "systemPackages",
                      span: Span {
                       start: Position {
                        line: 141,
                        column: 17,
                       },
                       end: Position {
                        line: 141,
                        column: 31,
                       },
                      },
                     },
                    ),
                   ],
                   to: List(
                    List {
                     elements: [
                      PropertyAccess(
                       PropertyAccess {
                        expression: Identifier(
                         Identifier {
                          id: "pkgs",
                          span: Span {
                           start: Position {
                            line: 141,
                            column: 36,
                           },
                           end: Position {
                            line: 141,
                            column: 40,
                           },
                          },
                         },
                        ),
                        attribute_path: [
                         Raw(
                          PartRaw {
                           content: "apcupsd",
                           span: Span {
                            start: Position {
                             line: 141,
                             column: 41,
                            },
                            end: Position {
                             line: 141,
                             column: 48,
                            },
                           },
                          },
                         ),
                        ],
                        default: None,
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 141,
                       column: 34,
                      },
                      end: Position {
                       line: 141,
                       column: 50,
                      },
                     },
                    },
                   ),
                  },
                 ),
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "systemd",
                      span: Span {
                       start: Position {
                        line: 150,
                        column: 5,
                       },
                       end: Position {
                        line: 150,
                        column: 12,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "services",
                      span: Span {
                       start: Position {
                        line: 150,
                        column: 13,
                       },
                       end: Position {
                        line: 150,
                        column: 21,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "apcupsd",
                      span: Span {
                       start: Position {
                        line: 150,
                        column: 22,
                       },
                       end: Position {
                        line: 150,
                        column: 29,
                       },
                      },
                     },
                    ),
                   ],
                   to: Map(
                    Map {
                     recursive: false,
                     bindings: [
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "description",
                           span: Span {
                            start: Position {
                             line: 151,
                             column: 7,
                            },
                            end: Position {
                             line: 151,
                             column: 18,
                            },
                           },
                          },
                         ),
                        ],
                        to: String(
                         String_ {
                          parts: [
                           Raw(
                            PartRaw {
                             content: "APC UPS Daemon",
                             span: Span {
                              start: Position {
                               line: 151,
                               column: 22,
                              },
                              end: Position {
                               line: 151,
                               column: 36,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 151,
                            column: 21,
                           },
                           end: Position {
                            line: 151,
                            column: 37,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "wantedBy",
                           span: Span {
                            start: Position {
                             line: 152,
                             column: 7,
                            },
                            end: Position {
                             line: 152,
                             column: 15,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "multi-user.target",
                                span: Span {
                                 start: Position {
                                  line: 152,
                                  column: 21,
                                 },
                                 end: Position {
                                  line: 152,
                                  column: 38,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 152,
                               column: 20,
                              },
                              end: Position {
                               line: 152,
                               column: 39,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 152,
                            column: 18,
                           },
                           end: Position {
                            line: 152,
                            column: 41,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "preStart",
                           span: Span {
                            start: Position {
                             line: 153,
                             column: 7,
                            },
                            end: Position {
                             line: 153,
                             column: 15,
                            },
                           },
                          },
                         ),
                        ],
                        to: String(
                         String_ {
                          parts: [
                           Raw(
                            PartRaw {
                             content: "mkdir -p /run/apcupsd/",
                             span: Span {
                              start: Position {
                               line: 153,
                               column: 19,
                              },
                              end: Position {
                               line: 153,
                               column: 41,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 153,
                            column: 18,
                           },
                           end: Position {
                            line: 153,
                            column: 42,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "serviceConfig",
                           span: Span {
                            start: Position {
                             line: 154,
                             column: 7,
                            },
                            end: Position {
                             line: 154,
                             column: 20,
                            },
                           },
                          },
                         ),
                        ],
                        to: Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "ExecStart",
                                span: Span {
                                 start: Position {
                                  line: 155,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 155,
                                  column: 18,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Interpolation(
                                 PartInterpolation {
                                  expression: PropertyAccess(
                                   PropertyAccess {
                                    expression: Identifier(
                                     Identifier {
                                      id: "pkgs",
                                      span: Span {
                                       start: Position {
                                        line: 155,
                                        column: 24,
                                       },
                                       end: Position {
                                        line: 155,
                                        column: 28,
                                       },
                                      },
                                     },
                                    ),
                                    attribute_path: [
                                     Raw(
                                      PartRaw {
                                       content: "apcupsd",
                                       span: Span {
                                        start: Position {
                                         line: 155,
                                         column: 29,
                                        },
                                        end: Position {
                                         line: 155,
                                         column: 36,
                                        },
                                       },
                                      },
                                     ),
                                    ],
                                    default: None,
                                   },
                                  ),
                                 },
                                ),
                                Raw(
                                 PartRaw {
                                  content: "/bin/apcupsd -b -f ",
                                  span: Span {
                                   start: Position {
                                    line: 155,
                                    column: 22,
                                   },
                                   end: Position {
                                    line: 155,
                                    column: 56,
                                   },
                                  },
                                 },
                                ),
                                Interpolation(
                                 PartInterpolation {
                                  expression: Identifier(
                                   Identifier {
                                    id: "configFile",
                                    span: Span {
                                     start: Position {
                                      line: 155,
                                      column: 58,
                                     },
                                     end: Position {
                                      line: 155,
                                      column: 68,
                                     },
                                    },
                                   },
                                  ),
                                 },
                                ),
                                Raw(
                                 PartRaw {
                                  content: " -d1",
                                  span: Span {
                                   start: Position {
                                    line: 155,
                                    column: 22,
                                   },
                                   end: Position {
                                    line: 155,
                                    column: 73,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 155,
                                 column: 21,
                                },
                                end: Position {
                                 line: 155,
                                 column: 74,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "TimeoutStopSec",
                                span: Span {
                                 start: Position {
                                  line: 162,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 162,
                                  column: 23,
                                 },
                                },
                               },
                              ),
                             ],
                             to: Integer(
                              Integer {
                               value: "5",
                               span: Span {
                                start: Position {
                                 line: 162,
                                 column: 26,
                                },
                                end: Position {
                                 line: 162,
                                 column: 27,
                                },
                               },
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 154,
                            column: 23,
                           },
                           end: Position {
                            line: 163,
                            column: 8,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "unitConfig",
                           span: Span {
                            start: Position {
                             line: 164,
                             column: 7,
                            },
                            end: Position {
                             line: 164,
                             column: 17,
                            },
                           },
                          },
                         ),
                         Raw(
                          PartRaw {
                           content: "Documentation",
                           span: Span {
                            start: Position {
                             line: 164,
                             column: 18,
                            },
                            end: Position {
                             line: 164,
                             column: 31,
                            },
                           },
                          },
                         ),
                        ],
                        to: String(
                         String_ {
                          parts: [
                           Raw(
                            PartRaw {
                             content: "man:apcupsd(8)",
                             span: Span {
                              start: Position {
                               line: 164,
                               column: 35,
                              },
                              end: Position {
                               line: 164,
                               column: 49,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 164,
                            column: 34,
                           },
                           end: Position {
                            line: 164,
                            column: 50,
                           },
                          },
                         },
                        ),
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 150,
                       column: 32,
                      },
                      end: Position {
                       line: 165,
                       column: 6,
                      },
                     },
                    },
                   ),
                  },
                 ),
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "systemd",
                      span: Span {
                       start: Position {
                        line: 171,
                        column: 5,
                       },
                       end: Position {
                        line: 171,
                        column: 12,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "services",
                      span: Span {
                       start: Position {
                        line: 171,
                        column: 13,
                       },
                       end: Position {
                        line: 171,
                        column: 21,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "apcupsd-killpower",
                      span: Span {
                       start: Position {
                        line: 171,
                        column: 22,
                       },
                       end: Position {
                        line: 171,
                        column: 39,
                       },
                      },
                     },
                    ),
                   ],
                   to: Map(
                    Map {
                     recursive: false,
                     bindings: [
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "description",
                           span: Span {
                            start: Position {
                             line: 172,
                             column: 7,
                            },
                            end: Position {
                             line: 172,
                             column: 18,
                            },
                           },
                          },
                         ),
                        ],
                        to: String(
                         String_ {
                          parts: [
                           Raw(
                            PartRaw {
                             content: "APC UPS Kill Power",
                             span: Span {
                              start: Position {
                               line: 172,
                               column: 22,
                              },
                              end: Position {
                               line: 172,
                               column: 40,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 172,
                            column: 21,
                           },
                           end: Position {
                            line: 172,
                            column: 41,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "after",
                           span: Span {
                            start: Position {
                             line: 173,
                             column: 7,
                            },
                            end: Position {
                             line: 173,
                             column: 12,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "shutdown.target",
                                span: Span {
                                 start: Position {
                                  line: 173,
                                  column: 18,
                                 },
                                 end: Position {
                                  line: 173,
                                  column: 33,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 173,
                               column: 17,
                              },
                              end: Position {
                               line: 173,
                               column: 34,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 173,
                            column: 15,
                           },
                           end: Position {
                            line: 173,
                            column: 36,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "before",
                           span: Span {
                            start: Position {
                             line: 174,
                             column: 7,
                            },
                            end: Position {
                             line: 174,
                             column: 13,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "final.target",
                                span: Span {
                                 start: Position {
                                  line: 174,
                                  column: 19,
                                 },
                                 end: Position {
                                  line: 174,
                                  column: 31,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 174,
                               column: 18,
                              },
                              end: Position {
                               line: 174,
                               column: 32,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 174,
                            column: 16,
                           },
                           end: Position {
                            line: 174,
                            column: 34,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "wantedBy",
                           span: Span {
                            start: Position {
                             line: 175,
                             column: 7,
                            },
                            end: Position {
                             line: 175,
                             column: 15,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "shutdown.target",
                                span: Span {
                                 start: Position {
                                  line: 175,
                                  column: 21,
                                 },
                                 end: Position {
                                  line: 175,
                                  column: 36,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 175,
                               column: 20,
                              },
                              end: Position {
                               line: 175,
                               column: 37,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 175,
                            column: 18,
                           },
                           end: Position {
                            line: 175,
                            column: 39,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "unitConfig",
                           span: Span {
                            start: Position {
                             line: 176,
                             column: 7,
                            },
                            end: Position {
                             line: 176,
                             column: 17,
                            },
                           },
                          },
                         ),
                        ],
                        to: Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "ConditionPathExists",
                                span: Span {
                                 start: Position {
                                  line: 177,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 177,
                                  column: 28,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "/run/apcupsd/powerfail",
                                  span: Span {
                                   start: Position {
                                    line: 177,
                                    column: 32,
                                   },
                                   end: Position {
                                    line: 177,
                                    column: 54,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 177,
                                 column: 31,
                                },
                                end: Position {
                                 line: 177,
                                 column: 55,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "DefaultDependencies",
                                span: Span {
                                 start: Position {
                                  line: 178,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 178,
                                  column: 28,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "no",
                                  span: Span {
                                   start: Position {
                                    line: 178,
                                    column: 32,
                                   },
                                   end: Position {
                                    line: 178,
                                    column: 34,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 178,
                                 column: 31,
                                },
                                end: Position {
                                 line: 178,
                                 column: 35,
                                },
                               },
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 176,
                            column: 20,
                           },
                           end: Position {
                            line: 179,
                            column: 8,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "serviceConfig",
                           span: Span {
                            start: Position {
                             line: 180,
                             column: 7,
                            },
                            end: Position {
                             line: 180,
                             column: 20,
                            },
                           },
                          },
                         ),
                        ],
                        to: Map(
                         Map {
                          recursive: false,
                          bindings: [
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "Type",
                                span: Span {
                                 start: Position {
                                  line: 181,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 181,
                                  column: 13,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "oneshot",
                                  span: Span {
                                   start: Position {
                                    line: 181,
                                    column: 17,
                                   },
                                   end: Position {
                                    line: 181,
                                    column: 24,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 181,
                                 column: 16,
                                },
                                end: Position {
                                 line: 181,
                                 column: 25,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "ExecStart",
                                span: Span {
                                 start: Position {
                                  line: 182,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 182,
                                  column: 18,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Interpolation(
                                 PartInterpolation {
                                  expression: PropertyAccess(
                                   PropertyAccess {
                                    expression: Identifier(
                                     Identifier {
                                      id: "pkgs",
                                      span: Span {
                                       start: Position {
                                        line: 182,
                                        column: 24,
                                       },
                                       end: Position {
                                        line: 182,
                                        column: 28,
                                       },
                                      },
                                     },
                                    ),
                                    attribute_path: [
                                     Raw(
                                      PartRaw {
                                       content: "apcupsd",
                                       span: Span {
                                        start: Position {
                                         line: 182,
                                         column: 29,
                                        },
                                        end: Position {
                                         line: 182,
                                         column: 36,
                                        },
                                       },
                                      },
                                     ),
                                    ],
                                    default: None,
                                   },
                                  ),
                                 },
                                ),
                                Raw(
                                 PartRaw {
                                  content: "/bin/apcupsd --killpower -f ",
                                  span: Span {
                                   start: Position {
                                    line: 182,
                                    column: 22,
                                   },
                                   end: Position {
                                    line: 182,
                                    column: 65,
                                   },
                                  },
                                 },
                                ),
                                Interpolation(
                                 PartInterpolation {
                                  expression: Identifier(
                                   Identifier {
                                    id: "configFile",
                                    span: Span {
                                     start: Position {
                                      line: 182,
                                      column: 67,
                                     },
                                     end: Position {
                                      line: 182,
                                      column: 77,
                                     },
                                    },
                                   },
                                  ),
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 182,
                                 column: 21,
                                },
                                end: Position {
                                 line: 182,
                                 column: 79,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "TimeoutSec",
                                span: Span {
                                 start: Position {
                                  line: 183,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 183,
                                  column: 19,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "infinity",
                                  span: Span {
                                   start: Position {
                                    line: 183,
                                    column: 23,
                                   },
                                   end: Position {
                                    line: 183,
                                    column: 31,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 183,
                                 column: 22,
                                },
                                end: Position {
                                 line: 183,
                                 column: 32,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "StandardOutput",
                                span: Span {
                                 start: Position {
                                  line: 184,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 184,
                                  column: 23,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "tty",
                                  span: Span {
                                   start: Position {
                                    line: 184,
                                    column: 27,
                                   },
                                   end: Position {
                                    line: 184,
                                    column: 30,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 184,
                                 column: 26,
                                },
                                end: Position {
                                 line: 184,
                                 column: 31,
                                },
                               },
                              },
                             ),
                            },
                           ),
                           KeyValue(
                            BindingKeyValue {
                             from: [
                              Raw(
                               PartRaw {
                                content: "RemainAfterExit",
                                span: Span {
                                 start: Position {
                                  line: 185,
                                  column: 9,
                                 },
                                 end: Position {
                                  line: 185,
                                  column: 24,
                                 },
                                },
                               },
                              ),
                             ],
                             to: String(
                              String_ {
                               parts: [
                                Raw(
                                 PartRaw {
                                  content: "yes",
                                  span: Span {
                                   start: Position {
                                    line: 185,
                                    column: 28,
                                   },
                                   end: Position {
                                    line: 185,
                                    column: 31,
                                   },
                                  },
                                 },
                                ),
                               ],
                               span: Span {
                                start: Position {
                                 line: 185,
                                 column: 27,
                                },
                                end: Position {
                                 line: 185,
                                 column: 32,
                                },
                               },
                              },
                             ),
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 180,
                            column: 23,
                           },
                           end: Position {
                            line: 186,
                            column: 8,
                           },
                          },
                         },
                        ),
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 171,
                       column: 42,
                      },
                      end: Position {
                       line: 187,
                       column: 6,
                      },
                     },
                    },
                   ),
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 129,
                  column: 28,
                 },
                 end: Position {
                  line: 189,
                  column: 4,
                 },
                },
               },
              ),
             ],
            },
           ),
          },
         ),
        ],
        span: Span {
         start: Position {
          line: 67,
          column: 1,
         },
         end: Position {
          line: 191,
          column: 2,
         },
        },
       },
      ),
      span: Span {
       start: Position {
        line: 5,
        column: 1,
       },
       end: Position {
        line: 191,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 3,
      column: 1,
     },
     end: Position {
      line: 191,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 1,
    column: 1,
   },
   end: Position {
    line: 191,
    column: 2,
   },
  },
 },
)