diagrams / diagrams-contrib

User-contributed extensions to diagrams
BSD 3-Clause "New" or "Revised" License
27 stars 31 forks source link

Build error #41

Closed deepakjois closed 9 years ago

deepakjois commented 9 years ago

Building diagrams-contrib inside a cabal sandbox gives me this error:

src/Diagrams/TwoD/Path/Metafont/Types.hs:36:15:
    Not in scope: type constructor or class `V2'
    Perhaps you meant one of these:
      `P2' (imported from Diagrams.TwoD.Types),
      `R2' (imported from Diagrams.TwoD.Types),
      `T2' (imported from Diagrams.TwoD.Types)

Let me know if you need additonal information. The commands I am running are simply:

cabal sandbox init
cabal install --only-dependencies -j4
cabal install arithmoi -f -llvm
cabal build

OS X 10.9, GHC v7.6.3

deepakjois commented 9 years ago

Happy to fix it if somebody gives me some context around what exactly changed?

cchalmers commented 9 years ago

Looks like you're not using the current diagrams-lib from github in your sandbox. You'll probably also need the new diagrams-core, active and force-layout.

deepakjois commented 9 years ago

This is a completely clean sandbox. So it should load the dependencies as specified in the cabal file.

Here is the snipped output of the dependencies being loaded

Loading package active-0.1.0.16 ... linking ... done.
Loading package force-layout-0.3.0.7 ... linking ... done.
Loading package diagrams-core-1.2.0.2 ... linking ... done.
Loading package diagrams-lib-1.2.0.4 ... linking ... done.

According to Hackage, that's the latest diagrams.

deepakjois commented 9 years ago

Sorry, I misread your comment. So I guess I need to build diagrams from Github.

cchalmers commented 9 years ago

Yes, if you want to use the diagrams-contrib from github. We've recently undergone a port to linear so pretty much everything's been rewritten. I guess we should change the versions and dependencies on the github versions so it won't let you try to install the old ones from Hackage.

jeffreyrosenbluth commented 9 years ago

Seems like this is settled.