haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

Fix build with GHC HEAD (8.11) #150

Closed KaneTW closed 4 years ago

KaneTW commented 4 years ago

With GHC HEAD (8.11), build fails with

> /tmp/stack86151/alex-3.2.5/src/DFAMin.hs:35:17: error:
>     Suffix occurrence of @. For an as-pattern, remove the leading whitespace.
>    |       
> 35 | minimizeDFA  dfa@ DFA { dfa_start_states = starts,
>    |                 ^

This fixes that issue.