Skip to content

Commit 99ee498

Browse files
committed
Add support for GHC 9.2.2
1 parent 071ef8e commit 99ee498

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

satisfy/src/ConCat/Satisfy/Plugin.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ install _opts todos =
8585
, sm_inline = False -- important
8686
, sm_eta_expand = False -- ??
8787
, sm_case_case = True
88+
#if MIN_VERSION_GLASGOW_HASKELL(9,2,2,0)
89+
, sm_cast_swizzle = True
90+
#endif
8891
#if MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
8992
, sm_uf_opts = defaultUnfoldingOpts
9093
, sm_pre_inline = False
9194
, sm_logger = logger
92-
9395
#endif
9496
#if MIN_VERSION_GLASGOW_HASKELL(8,4,0,0)
9597
, sm_dflags = dflags

satisfy/src/ConCat/Simplify.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ simplEnvForCcc dflags inline logger
125125
, sm_pre_inline = inline
126126
, sm_logger = logger
127127
, sm_dflags = dflags
128+
#if MIN_VERSION_GLASGOW_HASKELL(9,2,2,0)
129+
, sm_cast_swizzle = True
130+
#endif
128131
}
129132
where
130133
rules_on = gopt Opt_EnableRewriteRules dflags

0 commit comments

Comments
 (0)