Haskell Happy parser error mismatching types and infinite type
问题 Writing a Oberon-like language parser, I'm having troubles compiling the parser after I've updated it to be able to define more procedures on the same level, and not only nested one inside the other. This is my lexer: { module Lexer where } %wrapper "basic" $alpha = [a-zA-Z] $digit = [0-9] $validChar = [^\"] tokens :- $white+ ; "PROCEDURE" { \s -> KW_TokenProcedure } "END" { \s -> KW_TokenEnd } ";" { \s -> KW_TokenSemiColon } $alpha [$alpha $digit \_]* { \s -> TokenVariableIdentifier s } { --