Closed bixuanzju closed 6 years ago
I'm experiencing the same benign behaviour. The .x files are converted to .hs files by the bnfc compiler generator tool. This thing: http://bnfc.digitalgrammars.com/ , for this project: https://github.com/robstewart57/cal-src .
The result of stack build
is:
stack build
There were multiple candidates for the Cabal entry "LexCAL" (/home/rob/code/haskell/cal-src/LexCAL.x), picking /home/rob/code/haskell/cal-src/LexCAL.hs
There were multiple candidates for the Cabal entry "ParCAL" (/home/rob/code/haskell/cal-src/ParCAL.y), picking /home/rob/code/haskell/cal-src/ParCAL.hs
There were multiple candidates for the Cabal entry "LexCAL" (/home/rob/code/haskell/cal-src/LexCAL.x), picking /home/rob/code/haskell/cal-src/LexCAL.hs
There were multiple candidates for the Cabal entry "ParCAL" (/home/rob/code/haskell/cal-src/ParCAL.y), picking /home/rob/code/haskell/cal-src/ParCAL.hs
@robstewart57 stack-ide
is pretty much dead afaik, you probably want to use intero instead
@cocreature Ah thanks. I hadn't realised that I was commenting on a stack-ide issue. My issue is to with only with the stack executable.
I have a project where I have
Lexer.x
andParser.y
files. Runningstack build
would automatically generateLexer.hs
andParser.hs
usingalex
andhappy
so that I don't have to manually generate those two before building. Runingstack ghci
is also able to loadLexer.hs
andParser.hs
. However,stack ide start
complains that it cannot compile the project:Of course I could manually generate those two files myself to satisfy
stack-ide
, but thenstack build
would complain:Though the default behaviour is benign, is there any way I can both please
stack
andstack-ide
?