tewe / uroboro

An Implementation of a Language with Pattern and Copattern Matching
MIT License
5 stars 3 forks source link

Improve uroboro.cabal #6

Open Toxaris opened 9 years ago

Toxaris commented 9 years ago

I'm confused about the following aspects of uroboro.cabal:

  1. The test suite doesn't mention the test modules in other-modules. I fear this breaks cabal sdist which is necessary for releasing uroboro to Hackage.
  2. The test suite pulls in the Haskell files in src in addition to depending on the uroboro library. This means that the library is recompiled when the test suite is compiled. The edit-compile-test cycle would be faster if this recompilation would be avoided.
  3. The -fhpc flag produces a tests.exe.tix file. It seems I have to manually delete this file every time I change something and then run cabal test. Or should I be doing something else to test a change?
Toxaris commented 9 years ago

@tewe explained that (2) is necessary to get test coverage information. Maybe we can declare a flag in the cabal file to turn test coverage information on or off, setting it to off by default?

tewe commented 9 years ago

GHC 7.10 changed a lot of things, breaking my test environment, so not closing this yet.

How useful are upper boundaries on versions for dependencies? That aren't ghc...