Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskell platform support #2

Open
pitermarx opened this issue Oct 23, 2014 · 10 comments
Open

haskell platform support #2

pitermarx opened this issue Oct 23, 2014 · 10 comments

Comments

@pitermarx
Copy link

I couldn't compile with the haskell platform installed. (base =4.7)
What can i do? is it possible to support it?

@egonSchiele
Copy link
Owner

What error do you see? This commit (e39edbc) should have resolved any issues.

@pitermarx
Copy link
Author

cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: Chips-0.1.0.0 (user goal)
trying: aeson-0.8.0.2 (dependency of Chips-0.1.0.0)
trying: unordered-containers-0.2.4.0/installed-078... (dependency of aeson-0.8.0.2)
next goal: text (dependency of aeson-0.8.0.2)
rejecting: text-1.1.0.0/installed-1ba... (conflict: aeson => text>=1.1.1.0)
trying: text-1.2.0.0
next goal: hashable (dependency of aeson-0.8.0.2)
rejecting: hashable-1.2.2.0/installed-9a3... (conflict: text==1.2.0.0, hashable => text==1.1.0.0/installed-1ba...)
rejecting: hashable-1.2.2.0, 1.2.1.0, 1.2.0.10, 1.2.0.9, 1.2.0.8, 1.2.0.7, 1.2.0.6, 1.2.0.5, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0.0, 1.1.2.5, 1.1.2.4, 1.1.2.3, 1.1.2.2, 1.1.2.1, 1.1.2.0, 1.1.1.0, 1.1.0.0, 1.0.1.1, 1.0.1.0, 1.0.0 (conflict: unordered-containers => hashable==1.2.2.0/installed-9a3...)
Dependency tree exhaustively searched.

@kepeterson
Copy link

Having the same problem

@egonSchiele
Copy link
Owner

Do you guys use cabal sandboxes?

@kepeterson
Copy link

Yeah, I tried it both with and without a sandbox.

I asked a Stack Overflow question which clarified things a little for me but I still don't really know how to fix it.

@egonSchiele
Copy link
Owner

I just pushed a fix, could you please try again?

@kepeterson
Copy link

In a fresh cabal sandbox:

$ cabal install --dependencies-only
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: Cabal-1.20.0.2/installed-b86... (user goal)
trying: Chips-0.1.0.0 (user goal)
next goal: template-haskell (dependency of Chips-0.1.0.0)
rejecting: template-haskell-2.9.0.0/installed-1b1..., 2.9.0.0 (conflict: Chips
=> template-haskell==2.8.*)
rejecting: template-haskell-2.8.0.0 (conflict: Cabal =>
base==4.7.0.1/installed-df2..., template-haskell => base==4.6.*)
rejecting: template-haskell-2.7.0.0, 2.6.0.0, 2.5.0.0, 2.4.0.1, 2.4.0.0,
2.3.0.1, 2.3.0.0, 2.2.0.0 (conflict: Chips => template-haskell==2.8.*)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

Looks like a different error at least.

@egonSchiele
Copy link
Owner

Unfortunately there's no way for me to know what versions of the libraries are on your machine, so this will be a bit of guess-and-check. Try changing the build-depends section in Chips.cabal to this:

build-depends:       base >=4.6,
                     gloss ==1.8.*,
                     lens ==3.9.*,
                     mtl ==2.*,
                     template-haskell ==2.*,
                     ActionKid ==0.1.*,
                     time,
                     aeson ==0.6.*,
                     bytestring ==0.10.*

@kepeterson
Copy link

With that new build-depends I get Failed to install array-0.4.0.1.

Here's what I have installed:

$ ghc-pkg list
/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/package.conf.d
   Cabal-1.18.1.4
   GLURaw-1.4.0.1
   GLUT-2.5.1.1
   HTTP-4000.2.10
   HUnit-1.2.5.2
   OpenGL-2.9.2.0
   OpenGLRaw-1.5.0.0
   QuickCheck-2.6
   array-0.5.0.0
   async-2.0.1.5
   attoparsec-0.10.4.0
   base-4.7.0.1
   bin-package-db-0.0.0.0
   binary-0.7.1.0
   bytestring-0.10.4.0
   case-insensitive-1.1.0.3
   containers-0.5.5.1
   deepseq-1.3.0.2
   directory-1.2.1.0
   fgl-5.5.0.1
   filepath-1.3.0.2
   ghc-7.8.3
   ghc-prim-0.3.1.0
   hashable-1.2.2.0
   haskeline-0.7.1.2
   haskell-src-1.0.1.6
   haskell2010-1.1.2.0
   haskell98-2.0.0.3
   hoopl-3.10.0.1
   hpc-0.6.0.1
   hscolour-1.20.3
   html-1.0.1.2
   integer-gmp-0.5.1.0
   mtl-2.1.3.1
   network-2.4.2.3
   old-locale-1.0.0.6
   old-time-1.1.0.2
   parallel-3.2.0.4
   parsec-3.1.5
   pretty-1.1.1.1
   primitive-0.5.2.1
   process-1.2.0.0
   random-1.0.1.1
   regex-base-0.93.2
   regex-compat-0.95.1
   regex-posix-0.95.2
   rts-1.0
   split-0.2.2
   stm-2.4.2
   syb-0.4.1
   template-haskell-2.9.0.0
   terminfo-0.4.0.0
   text-1.1.0.0
   time-1.4.2
   transformers-0.3.0.0
   unix-2.7.0.1
   unordered-containers-0.2.4.0
   vector-0.10.9.1
   xhtml-3000.2.1
   zlib-0.5.4.1
/Users/kpeterson/.ghc/x86_64-darwin-7.8.3/package.conf.d
   text-1.1.1.0

@egonSchiele
Copy link
Owner

I don't think I can help with this, sorry :/ Looks like you have stumbled into cabal hell. This is something specific to your machine, so you will have to figure out how to resolve it. There are a lot of resources online that should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants