Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: How to install new GHC ? (agander)
2. Re: How to install new GHC ? (Baa)
3. Re: How to install new GHC ? (David McBride)
----------------------------------------------------------------------
Message: 1
Date: Tue, 12 Dec 2017 15:04:36 +0100
From: agander <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID:
<CAHpJ=bemfxzd_1skezn3naqjotcjcqz2s2ju2ctjdur2lau...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I put:
compiler: ghc-8.2.1
in the stack.yaml of my project which picks up the right version.
This didnt work prior to my current stack version 1.6.1
Giles
On 12 December 2017 at 14:38, Baa <[email protected]> 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.
>
> > On Tue, Dec 12, 2017 at 02:53:47PM +0200, Baa wrote:
> > > @Francesco: unfortunately nightly misses some package. So, I tried:
> > >
> > > $ stack --resolver=ghc-8.2.2 setup --reinstall
> > > Preparing to install GHC (tinfo6) to an isolated location. This
> > > will not interfere with any system-level installation. Already
> > > downloaded. Installed GHC.
> > >
> > > stack will use a sandboxed GHC it installed
> > > For more information on paths, see 'stack path' and 'stack exec
> > > env' To use this GHC and packages outside of a project, consider
> > > using: stack ghc, stack ghci, stack runghc, or stack exec
> > >
> > > So seems that 8.2.2 was installed, right? But how to build the
> > > project with new GHC now? I never used cabal before, `stack ghci`
> > > still runs 8.0.2 instead of 8.2.2. Installed GHC 8.2.2 does not
> > > correspond to .yaml file LTS - maybe this is a reason why old 8.0.2
> > > is stil used...
> > >
> > > When I try cabal build/new-build/repl I get:
> > >
> > > cabal: The program 'ghc' version >=6.4 is required but it could
> > > not be found.
> > >
> > > So, cabal does not know about installed GHC versions (at least
> > > 8.0.2, used by stack). I tried --require-sandbox but without
> > > success.
> >
> > Hey Paul,
> > four-step plan:
> >
> > 1. check where stack installed ghc, it should be something like:
> >
> > ~/.stack/programs/x86_32-linux/ghc-nopie-8.2.1/lib/ghc-8.2.1/bin
> >
> > 2. add these two lines to your `~/.bashrc`:
> >
> > export PATH=~/.cabal/bin:$PATH # path to stuff built with cabal
> > export PATH=~/the.stackpathabove:$PATH # path to ghc
> >
> > 3. check the right ghc version has been selected:
> >
> > ghc -v
> > # should be 8.2.2
> >
> > 4. cd into your project and `cabal new-build` and then open a repl on
> > it with `cabal new-repl`.
> >
> > Let us know if this works!
> >
> > _______________________________________________
> > Beginners mailing list
> > [email protected]
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20171212/5f8af4f1/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 12 Dec 2017 16:06:44 +0200
From: Baa <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID: <20171212160644.3dcf327e@Pavel>
Content-Type: text/plain; charset=US-ASCII
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
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
Message: 3
Date: Tue, 12 Dec 2017 09:20:32 -0500
From: David McBride <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID:
<can+tr43gqe_fv2yca+mhpmnoz1unavtm6kxpbeuf47cqcuw...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
If your original goal was to test for a ghc panic in newer ghc, my final
suggestion would be to get a minimal example that panics without all these
extra dependencies. If you happen to find that the bug exists in newer
ghc, you'd have to do that anyways to submit a useful bug report.
On Tue, Dec 12, 2017 at 9:06 AM, Baa <[email protected]> wrote:
> 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
> > [email protected]
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20171212/e85ca291/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 114, Issue 18
******************************************