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 ? (Baa)
2. Re: How to install new GHC ? (David McBride)
3. Re: How to install new GHC ? (Francesco Ariis)
4. Re: How to install new GHC ? (Baa)
5. Re: How to install new GHC ? (Baa)
----------------------------------------------------------------------
Message: 1
Date: Tue, 12 Dec 2017 14:53:47 +0200
From: Baa <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID: <20171212145347.5e211ff2@Pavel>
Content-Type: text/plain; charset=US-ASCII
@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.
> On Tue, Dec 12, 2017 at 01:56:03PM +0200, Baa wrote:
> > Would somebody explain me what is wrong here and how I can test a
> > project with new 8.2.2 GHC?
>
> Hello Paul, I don't think stack lts has 8.2.2 just yet. Use a
> nightly or download/install ghc from here and compile your project
> with the new `cabal new-build`.
>
> [1] https://www.haskell.org/ghc/download_ghc_8_2_2.html#binaries
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
Message: 2
Date: Tue, 12 Dec 2017 08:16:44 -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+Tr41_3Wm34QJSDDL8CYgqt61Zw1n5MiTisHO+Sk=oxsk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You can see how to configure stack here:
https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md
The short of it is that to have stack ghci choose a particular version of
ghc, you probably need to modify ~/.stack/global/stack.yaml, change
resolver to something here https://www.stackage.org/snapshots that has your
version of ghc and dependencies similar to what your project wants. For
example 'nightly-2017-12-10'.
On Tue, Dec 12, 2017 at 7:53 AM, Baa <[email protected]> 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.
>
>
> > On Tue, Dec 12, 2017 at 01:56:03PM +0200, Baa wrote:
> > > Would somebody explain me what is wrong here and how I can test a
> > > project with new 8.2.2 GHC?
> >
> > Hello Paul, I don't think stack lts has 8.2.2 just yet. Use a
> > nightly or download/install ghc from here and compile your project
> > with the new `cabal new-build`.
> >
> > [1] https://www.haskell.org/ghc/download_ghc_8_2_2.html#binaries
> >
> >
> > _______________________________________________
> > 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/c9390d08/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 12 Dec 2017 14:18:50 +0100
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
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!
------------------------------
Message: 4
Date: Tue, 12 Dec 2017 15:38:30 +0200
From: Baa <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID: <20171212153830.7425ca8f@Pavel>
Content-Type: text/plain; charset=US-ASCII
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
------------------------------
Message: 5
Date: Tue, 12 Dec 2017 15:43:45 +0200
From: Baa <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to install new GHC ?
Message-ID: <20171212154345.083ddfa0@Pavel>
Content-Type: text/plain; charset=US-ASCII
@David: I tried to switch to nightly but in project's .yaml file and
got error about missing of some library (as I understand, it is missing
in last nightly). So, if I try to do it through .yaml file then how to
use new GHC (8.2.2) but with LTS for 8.0.2? Is it possible? I need last
stable LTS where all libraries (using in the projects) exist, but with
new GHC 8.2.2 which is too new for stable LTS. As I read somewhere, GHC
version and Stackage version are linked together hardly in stack tool,
or?
> You can see how to configure stack here:
> https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md
>
> The short of it is that to have stack ghci choose a particular
> version of ghc, you probably need to modify
> ~/.stack/global/stack.yaml, change resolver to something here
> https://www.stackage.org/snapshots that has your version of ghc and
> dependencies similar to what your project wants. For example
> 'nightly-2017-12-10'.
>
> On Tue, Dec 12, 2017 at 7:53 AM, Baa <[email protected]> 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.
> >
> >
> > > On Tue, Dec 12, 2017 at 01:56:03PM +0200, Baa wrote:
> > > > Would somebody explain me what is wrong here and how I can test
> > > > a project with new 8.2.2 GHC?
> > >
> > > Hello Paul, I don't think stack lts has 8.2.2 just yet. Use a
> > > nightly or download/install ghc from here and compile your project
> > > with the new `cabal new-build`.
> > >
> > > [1] https://www.haskell.org/ghc/download_ghc_8_2_2.html#binaries
> > >
> > >
> > > _______________________________________________
> > > 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
> >
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 114, Issue 16
******************************************