From 775527d9856222bf35022871cef50720fa029fcb Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Thu, 12 Sep 2024 16:08:28 +0100 Subject: [PATCH] Fix compilation with more recent Cabal It appears that a change in Cabal 3.12 has caused the dummy Lexer.hs file to no longer be shadowed by the one produced from Lexer.x Moreover, it no longer seems necessary, since `cabal repl` successfully loads the project even when Lexer.hs does not exist in the source (only Lexer.x does) The simple solution seems to simply delete this hacky Lexer.hs file from the source. --- src/FastTags/Lexer.hs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/FastTags/Lexer.hs diff --git a/src/FastTags/Lexer.hs b/src/FastTags/Lexer.hs deleted file mode 100644 index b9680b7..0000000 --- a/src/FastTags/Lexer.hs +++ /dev/null @@ -1,11 +0,0 @@ --- | This is a fake module so ghci works. When cabal builds, it will be --- shadowed by Lexer.x output. TODO get ghci to generate and use the alex --- output. -module FastTags.Lexer where -import qualified Data.Text as Text - -import qualified FastTags.Token as Token - - -tokenize :: FilePath -> Bool -> Text.Text -> Either String [Token.Token] -tokenize _ _ _ = Left "no lexer"