Comments (5)
What cabal file is being used? The logs say it replaces the pretty.cabal
file with a modified one.
The test-suite defiantly compiles and runs fine, you can see all the travis.ci builds here: https://travis-ci.org/haskell/pretty
from pretty.
/tmp$ cabal get pretty
Unpacking to pretty-1.1.2.0/
/tmp$ cd pretty-1.1.2.0/
/tmp/pretty-1.1.2.0$ ghc-7.8.4 --make Setup.hs
[1 of 1] Compiling Main ( Setup.hs, Setup.o )
Linking Setup ...
/tmp/pretty-1.1.2.0$ ./Setup configure --enable-tests -w ghc-7.8.4 && ./Setup build
Configuring pretty-1.1.2.0...
Building pretty-1.1.2.0...
Preprocessing library pretty-1.1.2.0...
[1 of 3] Compiling Text.PrettyPrint.HughesPJ ( src/Text/PrettyPrint/HughesPJ.hs, dist/build/Text/PrettyPrint/HughesPJ.o )
[2 of 3] Compiling Text.PrettyPrint.HughesPJClass ( src/Text/PrettyPrint/HughesPJClass.hs, dist/build/Text/PrettyPrint/HughesPJClass.o )
[3 of 3] Compiling Text.PrettyPrint ( src/Text/PrettyPrint.hs, dist/build/Text/PrettyPrint.o )
In-place registering pretty-1.1.2.0...
Preprocessing test suite 'test-pretty' for pretty-1.1.2.0...
tests/TestStructures.hs:15:8:
Could not find module ‘PrettyTestVersion’
Use -v to see a list of the files searched for.
tests/UnitT3911.hs:5:8:
Could not find module ‘TestUtils’
Use -v to see a list of the files searched for.
from pretty.
Hmm, I can't get ./Setup to work either but using cabal works fine. I get a different error than you using Setup though, so can't reproduce still.
What happens if you follow the recommended instructions?
cabal install "QuickCheck >= 2.5 && < 3"
cabal install --only-dependencies
cabal configure --enable-tests
cabal build
cabal test
from pretty.
$ cabal sandbox init
Writing a default package environment file to
/tmp/pretty-1.1.2.0/cabal.sandbox.config
Creating a new sandbox at /tmp/pretty-1.1.2.0/.cabal-sandbox
$ cabal install "QuickCheck >= 2.5 && < 3"
Resolving dependencies...
All the requested packages are already installed:
QuickCheck-2.7.6
Use --reinstall if you want to reinstall anyway.
$ cabal install --only-dependencies
Resolving dependencies...
cabal: internal error: could not construct a valid install plan.
The proposed (invalid) plan contained the following problems:
The following packages are involved in a dependency cycle QuickCheck-2.7.6, template-haskell-2.9.0.0, pretty-1.1.2.0
Proposed plan:
Configured QuickCheck-2.7.6 (.fake.QuickCheck-2.7.6)
Configured pretty-1.1.2.0 (.fake.pretty-1.1.2.0)
Configured template-haskell-2.9.0.0 (.fake.template-haskell-2.9.0.0)
PreExisting array-0.5.0.0 (array-0.5.0.0-470385a50d2b78598af85cfe9d988e1b)
PreExisting base-4.7.0.2 (base-4.7.0.2-bfd89587617e381ae01b8dd7b6c7f1c1)
PreExisting rts-1.0 (builtin_rts)
PreExisting containers-0.5.5.1 (containers-0.5.5.1-d4bd887fb97aa3a46cbadc13709b7653)
PreExisting deepseq-1.3.0.2 (deepseq-1.3.0.2-63a1ab91b7017a28bb5d04cb1b5d2d02)
PreExisting ghc-prim-0.3.1.0 (ghc-prim-0.3.1.0-a24f9c14c632d75b683d0f93283aea37)
PreExisting integer-gmp-0.5.1.0 (integer-gmp-0.5.1.0-26579559b3647acf4f01d5edd9491a46)
PreExisting old-locale-1.0.0.6 (old-locale-1.0.0.6-50b0125c49f76af85dc7aa22975cdc34)
PreExisting primitive-0.5.4.0 (primitive-0.5.4.0-16de88d6e87d483d63f4f882cdb55b93)
PreExisting random-1.1 (random-1.1-092becd083af689459dfd417368314bf)
PreExisting tf-random-0.5 (tf-random-0.5-b3fcd560a862ba1e31436a4ce73f0726)
PreExisting time-1.4.2 (time-1.4.2-9b3076800c33f8382c38628f35717951)
PreExisting transformers-0.3.0.0 (transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c)
$ cabal configure --enable-tests
Resolving dependencies...
Configuring pretty-1.1.2.0...
$ cabal build
Building pretty-1.1.2.0...
Preprocessing library pretty-1.1.2.0...
[1 of 3] Compiling Text.PrettyPrint.HughesPJ ( src/Text/PrettyPrint/HughesPJ.hs, dist/build/Text/PrettyPrint/HughesPJ.o )
[2 of 3] Compiling Text.PrettyPrint.HughesPJClass ( src/Text/PrettyPrint/HughesPJClass.hs, dist/build/Text/PrettyPrint/HughesPJClass.o )
[3 of 3] Compiling Text.PrettyPrint ( src/Text/PrettyPrint.hs, dist/build/Text/PrettyPrint.o )
In-place registering pretty-1.1.2.0...
Preprocessing test suite 'test-pretty' for pretty-1.1.2.0...
tests/TestStructures.hs:15:8:
Could not find module ‘PrettyTestVersion’
Use -v to see a list of the files searched for.
tests/UnitT3911.hs:5:8:
Could not find module ‘TestUtils’
Use -v to see a list of the files searched for.
$ cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library
from pretty.
Oh sorry, I don't know how I missed the obvious here. I simply haven't included some needed files in cabal. Updating now and I'll push out 1.1.2.1 to fix this.
from pretty.
Related Issues (20)
- Missing changelog entry for pretty 1.3.1.1 HOT 1
- Build issues with tests? HOT 1
- pretty-1.1.3.1 fails Haddock phase HOT 1
- Adding emptyLine document HOT 2
- Modify structure of an existing Doc HOT 5
- Bugfix: overlap and f?(cat|sep) HOT 1
- The `testLargeDoc` doesn't test anything
- Use `Semigroup((<>))` and define Monoid/Semigroup instances HOT 11
- Quadratic performance issues HOT 14
- Document the word "ribbon" HOT 1
- Support ByteString in TextDetails
- Support more instances of Pretty typeclass HOT 2
- Missing exportations in the Text.PrettyPrint module HOT 2
- Missing Pretty instance for Doc itself HOT 2
- Support alternative textual representations HOT 4
- Optimized rendering function for infinite band width case HOT 8
- Cut a release for GHC 8.4 HOT 4
- Add "depending on what fits" after "either X or Y", or similar HOT 1
- Doc 'Eq' instance fails Substitutivity HOT 1
- `fsep` and `fcat` are confusing as well. Does anyone know what "Paragraph fill" mean in this context? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty.