[Haskell-beginners] How to install new GHC ?

Baa aquagnu at gmail.com
Tue Dec 12 14:06:44 UTC 2017


I done it, but got the same error. My project uses several my packages
(libraries), they are called 'my-*'. I changed in their .cabal-files
versions range of "base" too, but error is the same. Build-depends
stanza of executable looks like:

  build-depends:       base >= 4.9 && < 4.11
                     , text
                     , my-common-utils
                     , my-atlassian-utils
                     , my-jenkins-utils
                     , my-git-utils
                     , aeson
                     , network-uri
                     , network-info
                     , text-show
                     , hslogger
                     , bytestring
                     , transformers
                     , aeson-pretty
                     , time
                     , email-validate
                     , streaming
                     , containers
                     , sqlite-simple
                     , directory
                     , tuple
                     , async
                     , mime-mail
                     , HaskellNet
                     , HaskellNet-SSL
                     , mustache
                     , path
                     , exceptions
                     , mono-traversable
                     , data-default-class
                     , path-io
                     , split
                     , microlens
                     , microlens-th
                     , regex-pcre
                     , pcre-utils
                     , unordered-containers
                     , formatting


> On Tue, Dec 12, 2017 at 03:38:30PM +0200, Baa wrote:
> > 1. GHC 8.2.2 is here:
> >    ~/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/bin
> > 2. done
> > 3. yes, it's 8.2.2
> > 4. `cabal new-build` said to me call `cabal update`, I done it,
> > then run it again and got:
> >     $ cabal new-build
> >     Resolving dependencies...
> >     cabal: Could not resolve dependencies:
> >     trying: XXX-0.5.0.0 (user goal)
> >     next goal: YYY-utils (dependency of XXX-0.5.0.0)
> >     Dependency tree exhaustively searched.  
> 
> Good, we're almost there!
> 
> I strongly suspect it is a base constraint. Go in your something.cabal
> file, build-depends section(s) and modify it from:
> 
>     base >= 4.somenumber && < 4.10
> 
> to
> 
>     base >= 4.somenumber && < 4.11
> 
> And try cabal new-build again. If that fails, please include the
> content of your `build-depends:` portion in your message
> -F
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners



More information about the Beginners mailing list