ekmett / bytes

Serialization primitives that work with both cereal and binary.
http://hackage.haskell.org/package/bytes
Other
22 stars 13 forks source link

Do not rely on an installed bytes package for running tests #6

Closed snoyberg closed 11 years ago

snoyberg commented 11 years ago

Currently, cabal install bytes --enable-tests fails unless you've previously installed the same version of bytes. This patch fixes that by:

  1. Removing the -package= option including bytes for doctest.
  2. Manually include the generated object file.
ekmett commented 11 years ago

This may be a systemic problem across other packages of mine.

ekmett commented 11 years ago

(This sort of issue arises because when I test I do so pretty much uniformly by using cabal install --enable-tests)

snoyberg commented 11 years ago

It's possible, but I'd be surprised. Stackage caught this issue very quickly, and this is the only package where it found such a problem.

snoyberg commented 11 years ago

FWIW, I tried using cabal install --enable-tests and the problem arose as well. Try unregistering bytes first.

ekmett commented 11 years ago

Yes, what i meant by that is that by the time I get around to running with the test suite I've usually installed the package =)

I have a hard time being productive in sandboxes.