File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 7
7
-- DFA minimization crashed with " Prelude head: empty list" because
8
8
-- empty set of non-accepting states was treated as empty equivalence
9
9
-- class of states.
10
+ --
11
+ -- Issue #258 , 2024 -02 -27 , Andreas Abel:
12
+ -- Since GHC 9.4 , type ' Symbol' conflicts with ' GHC.Exts.Symbol'
13
+ -- which was imported by alex <= 3.5.0.0
14
+ -- because of an unqualified import of ' GHC.Exts' .
10
15
11
16
module Main (main) where
12
17
13
18
import System.Exit
14
19
}
15
20
16
21
%wrapper " posn"
17
- %token " Token "
22
+ %token " Symbol "
18
23
19
24
$whitespace = [\ \n\t]
20
25
@whitespaces = $whitespace*
@@ -25,7 +30,10 @@ $whitespace = [\ \n\t]
25
30
" a" { \ _ _ -> A }
26
31
27
32
{
28
- data Token = Whitespaces | A
33
+ -- Calling the token type ' Symbol' will trigger a clash with GHC.Exts .Symbol
34
+ -- if the lexer is built with alex <= 3.5.0.0 .
35
+
36
+ data Symbol = Whitespaces | A
29
37
deriving (Eq, Show)
30
38
31
39
input = " aa \n\t aa \t \n a"
You can’t perform that action at this time.
0 commit comments