Skip to content

Commit 33331a9

Browse files
committed
Clean up as patterns in code
This ensures that yet-to-be-released GHC 9.0 and 9.2 can build Alex.
1 parent 66d677b commit 33331a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AbsSyn.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ extractActions scheme scanner = (scanner{scannerTokens = new_tokens}, decl_str)
324324
where
325325
(new_tokens, decls) = unzip (zipWith f (scannerTokens scanner) act_names)
326326

327-
f r@RECtx{ reCtxCode = Just code } name
327+
f r@(RECtx{ reCtxCode = Just code }) name
328328
= (r{reCtxCode = Just name}, Just (mkDecl name code))
329-
f r@RECtx{ reCtxCode = Nothing } _
329+
f r@(RECtx{ reCtxCode = Nothing }) _
330330
= (r{reCtxCode = Nothing}, Nothing)
331331

332332
gscanActionType res =

src/DFAMin.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import Data.List as List
3232
-- end;
3333

3434
minimizeDFA :: Ord a => DFA Int a -> DFA Int a
35-
minimizeDFA dfa@ DFA { dfa_start_states = starts,
36-
dfa_states = statemap
37-
}
35+
minimizeDFA dfa@(DFA { dfa_start_states = starts,
36+
dfa_states = statemap
37+
})
3838
= DFA { dfa_start_states = starts,
3939
dfa_states = Map.fromList states }
4040
where

0 commit comments

Comments
 (0)