Open fabfors opened 2 years ago
In trying to compile a new version of bnfc which will not give us so much bother with the Test.hs file, I attempted the following
I removed one line of code in ~ /bnfc/source/src/BNFC/Backend/Haskell.hs which concerns making of a test file:
mkfile (tFile opts) comment $ testfile opts cf
I alsos removed a couple of lines of code in HaskellSpec.hs concerning making the TestCalc.hs file.
But when I make bnfc it only passes 60 of the tests that are run. Work continues in finding a solution.
When building the stack project an error is thrown regarding Test.hs:
~/zedex/src/Frontend/Zedex/Test.hs:3:8: error: File name does not match module name:
Which can be worked around by manually renaming the module in Frontend/Zedex/Test.hs from Main to Frontend.Zedex.Test. The project builds successfully after this change.
A proper solution should be worked out in the future.