Add _general_declaration production
This keeps things in line with the official spec more closely
@@ -135,12 +135,16 @@ module.exports = grammar({
$.type_class_instance,
$.default,
$.foreign,
- $.type_signature,
- $.fixity,
$.function_declaration,
+ $._general_declaration,
$._statement
),
+ _general_declaration: $ => choice(
+ $.type_signature,
+ $.fixity
+ ),
+
_parenthesized_variable_symbol: $ => seq(
'(',
seq(
