Skip to content

Commit f4be23d

Browse files
committed
Fix CPP version bound to include GHC 9.1
This is so it is true for the dev versions of GHC leading up to 9.2, and needed so we can bump the minimum alex version prior to release.
1 parent 104bf45 commit f4be23d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/GenericTemplate.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define ALEX_IF_GHC_GT_500 #if __GLASGOW_HASKELL__ > 500
1313
#define ALEX_IF_GHC_LT_503 #if __GLASGOW_HASKELL__ < 503
1414
#define ALEX_IF_GHC_GT_706 #if __GLASGOW_HASKELL__ > 706
15-
#define ALEX_IF_GHC_GT_901 #if __GLASGOW_HASKELL__ > 901
15+
#define ALEX_IF_GHC_GE_901 #if __GLASGOW_HASKELL__ >= 901
1616
#define ALEX_ELIF_GHC_500 #elif __GLASGOW_HASKELL__ == 500
1717
#define ALEX_IF_BIGENDIAN #ifdef WORDS_BIGENDIAN
1818
#define ALEX_ELSE #else
@@ -68,7 +68,7 @@ ALEX_IF_BIGENDIAN
6868
low = int2Word# (ord# (indexCharOffAddr# arr off'))
6969
off' = off *# 2#
7070
ALEX_ELSE
71-
ALEX_IF_GHC_GT_901
71+
ALEX_IF_GHC_GE_901
7272
int16ToInt#
7373
ALEX_ENDIF
7474
(indexInt16OffAddr# arr off)
@@ -93,7 +93,7 @@ ALEX_IF_BIGENDIAN
9393
b0 = int2Word# (ord# (indexCharOffAddr# arr off'))
9494
off' = off *# 4#
9595
ALEX_ELSE
96-
ALEX_IF_GHC_GT_901
96+
ALEX_IF_GHC_GE_901
9797
int32ToInt#
9898
ALEX_ENDIF
9999
(indexInt32OffAddr# arr off)

0 commit comments

Comments
 (0)