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: "arbtt", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 30, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 13, }, }, }, ), Raw( PartRaw { content: "arbtt", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 19, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 11, column: 16, }, end: Position { line: 11, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 11, column: 22, }, end: Position { line: 11, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 12, column: 19, }, end: Position { line: 12, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 13, column: 27, }, end: Position { line: 13, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enable the arbtt statistics capture service.\n", span: Span { start: Position { line: 14, column: 1, }, end: Position { line: 15, column: 9, }, }, }, ), ], span: Span { start: Position { line: 13, column: 33, }, end: Position { line: 15, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 16, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 18, column: 17, }, end: Position { line: 18, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 19, column: 22, }, end: Position { line: 19, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "haskellPackages", span: Span { start: Position { line: 20, column: 24, }, end: Position { line: 20, column: 39, }, }, }, ), Raw( PartRaw { content: "arbtt", span: Span { start: Position { line: 20, column: 40, }, end: Position { line: 20, column: 45, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.haskellPackages.arbtt", span: Span { start: Position { line: 21, column: 42, }, end: Position { line: 21, column: 68, }, }, }, ), ], span: Span { start: Position { line: 21, column: 41, }, end: Position { line: 21, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 22, column: 23, }, end: Position { line: 22, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 22, column: 27, }, end: Position { line: 22, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The package to use for the arbtt binaries.\n", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 24, column: 9, }, }, }, ), ], span: Span { start: Position { line: 22, column: 33, }, end: Position { line: 24, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 26, }, end: Position { line: 25, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "logFile", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "%h/.arbtt/capture.log", span: Span { start: Position { line: 29, column: 20, }, end: Position { line: 29, column: 41, }, }, }, ), ], span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/home/username/.arbtt-capture.log", span: Span { start: Position { line: 30, column: 20, }, end: Position { line: 30, column: 53, }, }, }, ), ], span: Span { start: Position { line: 30, column: 19, }, end: Position { line: 30, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 23, }, end: Position { line: 31, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 31, column: 27, }, end: Position { line: 31, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The log file for captured samples.\n", span: Span { start: Position { line: 32, column: 1, }, end: Position { line: 33, column: 9, }, }, }, ), ], span: Span { start: Position { line: 31, column: 33, }, end: Position { line: 33, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 26, }, end: Position { line: 34, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sampleRate", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 36, column: 20, }, end: Position { line: 36, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 37, column: 22, }, end: Position { line: 37, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 16, }, }, }, ), ], to: Integer( Integer { value: "60", span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 16, }, }, }, ), ], to: Integer( Integer { value: "120", span: Span { start: Position { line: 39, column: 19, }, end: Position { line: 39, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 23, }, end: Position { line: 40, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 27, }, end: Position { line: 40, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The sampling interval in seconds.\n", span: Span { start: Position { line: 41, column: 1, }, end: Position { line: 42, column: 9, }, }, }, ), ], span: Span { start: Position { line: 40, column: 33, }, end: Position { line: 42, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 29, }, end: Position { line: 43, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 22, }, end: Position { line: 44, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 45, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 47, column: 3, }, end: Position { line: 47, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 48, column: 5, }, end: Position { line: 48, column: 12, }, }, }, ), Raw( PartRaw { content: "user", span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 48, column: 17, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 48, column: 18, }, end: Position { line: 48, column: 26, }, }, }, ), Raw( PartRaw { content: "arbtt", span: Span { start: Position { line: 48, column: 27, }, end: Position { line: 48, column: 32, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "arbtt statistics capture service", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 54, }, }, }, ), ], span: Span { start: Position { line: 49, column: 21, }, end: Position { line: 49, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "graphical-session.target", span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 45, }, }, }, ), ], span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 46, }, }, }, ), ], span: Span { start: Position { line: 50, column: 18, }, end: Position { line: 50, column: 48, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "partOf", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 13, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "graphical-session.target", span: Span { start: Position { line: 51, column: 19, }, end: Position { line: 51, column: 43, }, }, }, ), ], span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 44, }, }, }, ), ], span: Span { start: Position { line: 51, column: 16, }, end: Position { line: 51, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "simple", span: Span { start: Position { line: 54, column: 17, }, end: Position { line: 54, column: 23, }, }, }, ), ], span: Span { start: Position { line: 54, column: 16, }, end: Position { line: 54, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 55, column: 24, }, end: Position { line: 55, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 55, column: 28, }, end: Position { line: 55, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/arbtt-capture --logfile=", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 55, column: 67, }, end: Position { line: 55, column: 70, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "logFile", span: Span { start: Position { line: 55, column: 71, }, end: Position { line: 55, column: 78, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " --sample-rate=", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 94, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 55, column: 96, }, end: Position { line: 55, column: 104, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 55, column: 105, }, end: Position { line: 55, column: 108, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sampleRate", span: Span { start: Position { line: 55, column: 109, }, end: Position { line: 55, column: 119, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 55, column: 21, }, end: Position { line: 55, column: 121, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 56, column: 20, }, end: Position { line: 56, column: 26, }, }, }, ), ], span: Span { start: Position { line: 56, column: 19, }, end: Position { line: 56, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 53, column: 23, }, end: Position { line: 57, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 35, }, end: Position { line: 58, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 59, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 61, column: 3, }, end: Position { line: 61, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 61, column: 8, }, end: Position { line: 61, column: 19, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 61, column: 24, }, end: Position { line: 61, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "michaelpj", span: Span { start: Position { line: 61, column: 36, }, end: Position { line: 61, column: 45, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 61, column: 22, }, end: Position { line: 61, column: 47, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 4, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 62, column: 2, }, }, }, )