snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Cabal install failure #178

Closed bradleyprice closed 8 years ago

bradleyprice commented 8 years ago

Hey,

I'm having trouble getting Snap installed. I'm completely new to Haskell, so it is highly probable that it's something I'm doing wrong, but it seems that this commit would have fixed the issue I'm experiencing:

https://github.com/snapframework/snap-templates/commit/c0805124bd7b94ff4ec73f063ee0e17e75d4211c

Specifically, this part of the commit:

 -    template-haskell    >= 2.2     && < 2.11,
 +    template-haskell    >= 2.2     && < 2.12,

Here's what happens when I try to install Snap:

➜  cabal update
Downloading the latest package list from hackage.haskell.org
Skipping download: local and remote files match.

➜  cabal install snap
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: snap-0.14.0.7 (user goal)
trying: base-4.9.0.0/installed-4.9... (dependency of snap-0.14.0.7)
next goal: template-haskell (dependency of snap-0.14.0.7)
rejecting: template-haskell-2.11.0.0/installed-2.1...,
template-haskell-2.11.0.0 (conflict: snap => template-haskell>=2.2 && <2.11)
rejecting: template-haskell-2.10.0.0 (conflict:
base==4.9.0.0/installed-4.9..., template-haskell => base==4.8.*)
rejecting: template-haskell-2.9.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.7.*)
rejecting: template-haskell-2.8.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.6.*)
rejecting: template-haskell-2.7.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.5.*)
rejecting: template-haskell-2.6.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.4.*)
rejecting: template-haskell-2.5.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.3.*)
rejecting: template-haskell-2.4.0.1 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base==4.2.*)
rejecting: template-haskell-2.4.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base>=3 && <4.3)
rejecting: template-haskell-2.3.0.1, template-haskell-2.3.0.0,
template-haskell-2.2.0.0 (conflict: base==4.9.0.0/installed-4.9...,
template-haskell => base<4.3)
Dependency tree exhaustively searched.

Here's a little more info on my setup:

➜ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
➜  ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
➜  ghc-pkg list
/Library/Frameworks/GHC.framework/Versions/8.0.1-x86_64/usr/lib/ghc-8.0.1/package.conf.d
    Cabal-1.24.0.0
    GLURaw-2.0.0.1
    GLUT-2.7.0.7
    HTTP-4000.3.3
    HUnit-1.3.1.1
    ObjectName-1.1.0.1
    OpenGL-3.0.0.2
    OpenGLRaw-3.1.0.0
    QuickCheck-2.8.2
    StateVar-1.1.0.4
    array-0.5.1.1
    async-2.1.0
    attoparsec-0.13.0.2
    base-4.9.0.0
    binary-0.8.3.0
    bytestring-0.10.8.1
    case-insensitive-1.2.0.6
    containers-0.5.7.1
    deepseq-1.4.2.0
    directory-1.2.6.2
    fgl-5.5.2.3
    filepath-1.4.1.0
    fixed-0.2.1.1
    ghc-8.0.1
    ghc-boot-8.0.1
    ghc-boot-th-8.0.1
    ghc-prim-0.5.0.0
    ghci-8.0.1
    half-0.2.2.3
    hashable-1.2.4.0
    haskeline-0.7.2.3
    haskell-src-1.0.2.0
    hoopl-3.10.2.1
    hpc-0.6.0.3
    html-1.0.1.2
    integer-gmp-1.0.0.1
    mtl-2.2.1
    network-2.6.2.1
    network-uri-2.6.1.0
    parallel-3.2.1.0
    parsec-3.1.9
    pretty-1.1.3.3
    primitive-0.6.1.0
    process-1.4.2.0
    random-1.1
    regex-base-0.93.2
    regex-compat-0.95.1
    regex-posix-0.95.2
    rts-1.0
    scientific-0.3.4.6
    split-0.2.3
    stm-2.4.4.1
    syb-0.6
    template-haskell-2.11.0.0
    terminfo-0.4.0.2
    text-1.2.2.1
    tf-random-0.5
    time-1.6.0.1
    transformers-0.5.2.0
    unix-2.7.2.0
    unordered-containers-0.2.7.0
    vector-0.11.0.0
    xhtml-3000.2.1
    zlib-0.6.1.1

Any help would be highly appreciated and thanks in advance!

mightybyte commented 8 years ago

This is because the latest Snap on hackage doesn't support GHC 8 yet. See https://github.com/snapframework/snap/issues/140#issuecomment-229137176. We're working on it right now, so give us a few hours and it we should have it fixed.