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: 5, column: 6, }, end: Position { line: 5, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 9, column: 9, }, end: Position { line: 9, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 27, }, }, }, ), Raw( PartRaw { content: "freetds", span: Span { start: Position { line: 9, column: 28, }, end: Position { line: 9, column: 35, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 16, }, }, }, ), Raw( PartRaw { content: "freetds", span: Span { start: Position { line: 17, column: 17, }, end: Position { line: 17, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 17, column: 27, }, end: Position { line: 17, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 14, }, end: Position { line: 18, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsOf", span: Span { start: Position { line: 18, column: 20, }, end: Position { line: 18, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 28, }, end: Position { line: 18, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 18, column: 34, }, end: Position { line: 18, column: 37, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 20, column: 17, }, end: Position { line: 20, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{ MYDATABASE = ", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 21, column: 24, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 21, column: 27, }, }, }, ), Raw( PartRaw { content: "\n host = 10.0.2.100\n port = 1433\n tds version = 7.2\n ", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 25, column: 11, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 25, column: 14, }, }, }, ), Raw( PartRaw { content: ";\n}\n", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 27, column: 7, }, }, }, ), ], span: Span { start: Position { line: 20, column: 35, }, end: Position { line: 27, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 29, column: 13, }, end: Position { line: 29, column: 18, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Configure freetds database entries. Each attribute denotes\na section within freetds.conf, and the value (a string) is the config\ncontent for that section. When at least one entry is configured\nthe global environment variables FREETDSCONF, FREETDS and SYBASE\nwill be configured to allow the programs that use freetds to find the\nlibrary and config.\n", span: Span { start: Position { line: 30, column: 1, }, end: Position { line: 36, column: 9, }, }, }, ), ], span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 36, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 36, }, end: Position { line: 38, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 40, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 44, column: 3, }, end: Position { line: 44, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 44, column: 12, }, end: Position { line: 44, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "length", span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 24, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 44, column: 26, }, end: Position { line: 44, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 44, column: 36, }, end: Position { line: 44, column: 39, }, }, }, ), ], }, ), ], }, ), operator: GreaterThan, right: Integer( Integer { value: "0", span: Span { start: Position { line: 44, column: 43, }, end: Position { line: 44, column: 44, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 46, column: 5, }, end: Position { line: 46, column: 16, }, }, }, ), Raw( PartRaw { content: "variables", span: Span { start: Position { line: 46, column: 17, }, end: Position { line: 46, column: 26, }, }, }, ), Raw( PartRaw { content: "FREETDSCONF", span: Span { start: Position { line: 46, column: 27, }, end: Position { line: 46, column: 38, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/freetds.conf", span: Span { start: Position { line: 46, column: 42, }, end: Position { line: 46, column: 59, }, }, }, ), ], span: Span { start: Position { line: 46, column: 41, }, end: Position { line: 46, column: 60, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 47, column: 5, }, end: Position { line: 47, column: 16, }, }, }, ), Raw( PartRaw { content: "variables", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 26, }, }, }, ), Raw( PartRaw { content: "FREETDS", span: Span { start: Position { line: 47, column: 27, }, end: Position { line: 47, column: 34, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/freetds.conf", span: Span { start: Position { line: 47, column: 38, }, end: Position { line: 47, column: 55, }, }, }, ), ], span: Span { start: Position { line: 47, column: 37, }, end: Position { line: 47, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 48, column: 5, }, end: Position { line: 48, column: 16, }, }, }, ), Raw( PartRaw { content: "variables", span: Span { start: Position { line: 48, column: 17, }, end: Position { line: 48, column: 26, }, }, }, ), Raw( PartRaw { content: "SYBASE", span: Span { start: Position { line: 48, column: 27, }, end: Position { line: 48, column: 33, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 48, column: 39, }, end: Position { line: 48, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "freetds", span: Span { start: Position { line: 48, column: 44, }, end: Position { line: 48, column: 51, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 48, column: 36, }, end: Position { line: 48, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 16, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 50, column: 17, }, end: Position { line: 50, column: 20, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "freetds.conf", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 34, }, }, }, ), ], span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 35, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 50, column: 40, }, end: Position { line: 50, column: 44, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStrings", span: Span { start: Position { line: 51, column: 8, }, end: Position { line: 51, column: 21, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 51, column: 23, }, end: Position { line: 51, column: 37, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 53, column: 10, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 53, column: 12, }, end: Position { line: 53, column: 16, }, }, }, ), }, ), Raw( PartRaw { content: "]\n", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 54, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "value", span: Span { start: Position { line: 54, column: 11, }, end: Position { line: 54, column: 16, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 55, column: 9, }, }, }, ), ], span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 55, column: 11, }, }, }, ), span: Span { start: Position { line: 51, column: 45, }, end: Position { line: 55, column: 11, }, }, }, ), span: Span { start: Position { line: 51, column: 39, }, end: Position { line: 55, column: 11, }, }, }, ), Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 12, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 38, }, end: Position { line: 57, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 44, column: 46, }, end: Position { line: 59, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 61, column: 2, }, }, }, )