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: "ympd", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 29, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 13, }, }, }, ), Raw( PartRaw { content: "ympd", span: Span { start: Position { line: 13, column: 14, }, end: Position { line: 13, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 15, column: 32, }, end: Position { line: 15, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 15, column: 36, }, end: Position { line: 15, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "ympd, the MPD Web GUI", span: Span { start: Position { line: 15, column: 43, }, end: Position { line: 15, column: 64, }, }, }, ), ], span: Span { start: Position { line: 15, column: 42, }, end: Position { line: 15, column: 65, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "webPort", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 17, column: 17, }, end: Position { line: 17, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 16, }, end: Position { line: 18, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "either", span: Span { start: Position { line: 18, column: 22, }, end: Position { line: 18, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 29, }, end: Position { line: 18, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 18, column: 35, }, end: Position { line: 18, column: 38, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 39, }, end: Position { line: 18, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 18, column: 45, }, end: Position { line: 18, column: 49, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "8080", span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 19, column: 24, }, }, }, ), ], span: Span { start: Position { line: 19, column: 19, }, end: Position { line: 19, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 20, column: 23, }, end: Position { line: 20, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 20, column: 27, }, end: Position { line: 20, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The port where ympd's web interface will be available.", span: Span { start: Position { line: 20, column: 34, }, end: Position { line: 20, column: 88, }, }, }, ), ], span: Span { start: Position { line: 20, column: 33, }, end: Position { line: 20, column: 89, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "ssl://8080:/path/to/ssl-private-key.pem", span: Span { start: Position { line: 21, column: 20, }, end: Position { line: 21, column: 59, }, }, }, ), ], span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 60, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 26, }, end: Position { line: 22, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mpd", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "host", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 25, column: 16, }, end: Position { line: 25, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 26, column: 11, }, end: Position { line: 26, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 26, column: 18, }, end: Position { line: 26, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 26, column: 24, }, end: Position { line: 26, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 11, }, end: Position { line: 27, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "localhost", span: Span { start: Position { line: 27, column: 22, }, end: Position { line: 27, column: 31, }, }, }, ), ], span: Span { start: Position { line: 27, column: 21, }, end: Position { line: 27, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 11, }, end: Position { line: 28, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 25, }, end: Position { line: 28, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 28, column: 29, }, end: Position { line: 28, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The host where MPD is listening.", span: Span { start: Position { line: 28, column: 36, }, end: Position { line: 28, column: 68, }, }, }, ), ], span: Span { start: Position { line: 28, column: 35, }, end: Position { line: 28, column: 69, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 25, column: 25, }, end: Position { line: 29, column: 10, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 32, column: 11, }, end: Position { line: 32, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 32, column: 18, }, end: Position { line: 32, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 32, column: 24, }, end: Position { line: 32, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 33, column: 11, }, end: Position { line: 33, column: 18, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 33, column: 28, }, end: Position { line: 33, column: 36, }, }, }, ), Raw( PartRaw { content: "mpd", span: Span { start: Position { line: 33, column: 37, }, end: Position { line: 33, column: 40, }, }, }, ), Raw( PartRaw { content: "network", span: Span { start: Position { line: 33, column: 41, }, end: Position { line: 33, column: 48, }, }, }, ), Raw( PartRaw { content: "port", span: Span { start: Position { line: 33, column: 49, }, end: Position { line: 33, column: 53, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 34, column: 11, }, end: Position { line: 34, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 34, column: 25, }, end: Position { line: 34, column: 42, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "config.services.mpd.network.port", span: Span { start: Position { line: 34, column: 44, }, end: Position { line: 34, column: 76, }, }, }, ), ], span: Span { start: Position { line: 34, column: 43, }, end: Position { line: 34, column: 77, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 35, column: 11, }, end: Position { line: 35, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 35, column: 25, }, end: Position { line: 35, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 35, column: 29, }, end: Position { line: 35, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The port where MPD is listening.", span: Span { start: Position { line: 35, column: 36, }, end: Position { line: 35, column: 68, }, }, }, ), ], span: Span { start: Position { line: 35, column: 35, }, end: Position { line: 35, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 36, column: 11, }, end: Position { line: 36, column: 18, }, }, }, ), ], to: Integer( Integer { value: "6600", span: Span { start: Position { line: 36, column: 21, }, end: Position { line: 36, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 31, column: 25, }, end: Position { line: 37, column: 10, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 24, column: 13, }, end: Position { line: 38, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 13, column: 21, }, end: Position { line: 40, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 11, column: 13, }, end: Position { line: 42, 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: 49, column: 5, }, end: Position { line: 49, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 21, }, }, }, ), Raw( PartRaw { content: "ympd", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Standalone MPD Web GUI written in C", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 57, }, }, }, ), ], span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 58, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 38, }, }, }, ), ], span: Span { start: Position { line: 51, column: 20, }, end: Position { line: 51, column: 39, }, }, }, ), ], span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 20, }, }, }, ), Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 30, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 52, column: 36, }, end: Position { line: 52, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ympd", span: Span { start: Position { line: 52, column: 41, }, end: Position { line: 52, column: 45, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/ympd --host ", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 63, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 65, }, end: Position { line: 52, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mpd", span: Span { start: Position { line: 52, column: 69, }, end: Position { line: 52, column: 72, }, }, }, ), Raw( PartRaw { content: "host", span: Span { start: Position { line: 52, column: 73, }, end: Position { line: 52, column: 77, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " --port ", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 86, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 52, column: 88, }, end: Position { line: 52, column: 96, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 97, }, end: Position { line: 52, column: 100, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mpd", span: Span { start: Position { line: 52, column: 101, }, end: Position { line: 52, column: 104, }, }, }, ), Raw( PartRaw { content: "port", span: Span { start: Position { line: 52, column: 105, }, end: Position { line: 52, column: 109, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " --webport ", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 121, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 52, column: 123, }, end: Position { line: 52, column: 131, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 132, }, end: Position { line: 52, column: 135, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "webPort", span: Span { start: Position { line: 52, column: 136, }, end: Position { line: 52, column: 143, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " --user nobody", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 158, }, }, }, ), ], span: Span { start: Position { line: 52, column: 33, }, end: Position { line: 52, column: 159, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 29, }, end: Position { line: 53, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 55, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 4, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 57, column: 2, }, }, }, )