chips icon indicating copy to clipboard operation
chips copied to clipboard

haskell platform support

Open pitermarx opened this issue 10 years ago • 10 comments

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

pitermarx avatar Oct 23 '14 09:10 pitermarx

What error do you see? This commit (https://github.com/egonSchiele/chips/commit/e39edbce75ed2c59733e7e2ea4ef4135b1f17088) should have resolved any issues.

egonSchiele avatar Oct 23 '14 21:10 egonSchiele

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.

pitermarx avatar Oct 24 '14 08:10 pitermarx

Having the same problem

kepeterson avatar Oct 24 '14 22:10 kepeterson

Do you guys use cabal sandboxes?

egonSchiele avatar Oct 25 '14 14:10 egonSchiele

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.

kepeterson avatar Oct 25 '14 21:10 kepeterson

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

egonSchiele avatar Nov 11 '14 00:11 egonSchiele

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.

kepeterson avatar Nov 11 '14 01:11 kepeterson

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.*

egonSchiele avatar Nov 11 '14 01:11 egonSchiele

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

kepeterson avatar Nov 11 '14 01:11 kepeterson

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.

egonSchiele avatar Nov 11 '14 19:11 egonSchiele