diagrams / diagrams-contrib

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

Build errors (ghc 7.6.3, haskell-platform 2013.2.0.0, Debian) #36

Closed sajith closed 10 years ago

sajith commented 10 years ago

This is on Debian testing, ghc 7.6.3, haskell-platform 2013.2.0.0:

$ mkdir /tmp/test-diagrams
$ cd /tmp/test-diagrams
$ cabal sandbox init
Writing a default package environment file to
/tmp/test-diagrams/cabal.sandbox.config
Creating a new sandbox at /tmp/test-diagrams/.cabal-sandbox
$ cabal install diagrams
[stuff happening...]
[stuff happening...]

[18 of 20] Compiling Diagrams.TwoD.Layout.Tree ( src/Diagrams/TwoD/Layout/Tree.hs, dist/dist-sandbox-ec70b94b/build/Diagrams/TwoD/Layout/Tree.o )

src/Diagrams/TwoD/Layout/Tree.hs:448:26:
    No instance for (Default (ForceLayoutOpts R2))
      arising from a use of `def'
    Possible fix:
      add an instance declaration for (Default (ForceLayoutOpts R2))
    In the `_forceLayoutOpts' field of a record
    In the expression:
      FLTOpts
        {_forceLayoutOpts = def, _edgeLen = sqrt 2, _springK = 0.05,
         _staticK = 0.1}
    In an equation for `def':
        def
          = FLTOpts
              {_forceLayoutOpts = def, _edgeLen = sqrt 2, _springK = 0.05,
               _staticK = 0.1}
Failed to install diagrams-contrib-1.1.1.4
Configuring diagrams-svg-1.0.2.1...
Building diagrams-svg-1.0.2.1...
Preprocessing library diagrams-svg-1.0.2.1...

[stuff happening...]
[stuff happening...]

[3 of 3] Compiling Diagrams.Backend.SVG.CmdLine ( src/Diagrams/Backend/SVG/CmdLine.hs, dist/dist-sandbox-ec70b94b/build/Diagrams/Backend/SVG/CmdLine.o )
In-place registering diagrams-svg-1.0.2.1...
Creating package registration file: /tmp/pkgConf-diagrams-svg-1.0.21739.1
Installing library in
/tmp/test-diagrams/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/diagrams-svg-1.0.2.1
Registering diagrams-svg-1.0.2.1...
Installed diagrams-svg-1.0.2.1
cabal: Error: some packages failed to install:
diagrams-1.1.0.1 depends on diagrams-contrib-1.1.1.4 which failed to install.
diagrams-contrib-1.1.1.4 failed during the building phase. The exception was:
ExitFailure 1
byorgey commented 10 years ago

This looks like a duplicate of diagrams/diagrams-contrib#28; see the discussion there for more info and let us know if it resolves the issue for you.

sajith commented 10 years ago

Looks like it is. Installing data-default-0.5.3 in the sandbox worked. (I have data-default-0.5.1 in global packages.)

Thank you!

byorgey commented 10 years ago

Great!