The file was last updated in 2015. For some reason my development version of cabal picks it up instead of generating fresh one from Scan.x. The file is too old and doesn't compile with GHC 9.6.1.
Removing this file looks sound. At least the file src/Scan.hs shipped in the tarball is not the same as the one in the repo.
I wonder what purpose this file served.
The file was last updated in 2015. For some reason my development version of cabal picks it up instead of generating fresh one from
Scan.x
. The file is too old and doesn't compile with GHC 9.6.1.