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: Can't remove old haskell (Francesco Ariis)
2. Re: Can't remove old haskell (Lawrence Bottorff)
3. Re: Can't remove old haskell (Francesco Ariis)
4. Re: Can't remove old haskell (Lawrence Bottorff)
5. Re: Can't remove old haskell (Francesco Ariis)
----------------------------------------------------------------------
Message: 1
Date: Mon, 14 May 2018 19:56:36 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Can't remove old haskell
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hello Lawrence,
On Mon, May 14, 2018 at 12:52:01PM -0400, Lawrence Bottorff wrote:
> I've tried various removes, but to no avail. The newer version is on my
> system:
There should be no need of removing the old version.
> 12:50:32:/usr/local/haskell/ghc-8.4.2-x86_64/bin$ ./ghci --version
> The Glorious Glasgow Haskell Compilation System, version 8.4.2
What does `echo $PATH` say?
-F
------------------------------
Message: 2
Date: Mon, 14 May 2018 16:14:40 -0400
From: Lawrence Bottorff <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Can't remove old haskell
Message-ID:
<cafahfswsk5hml6yadjdpngkbgjnuwybgty4aj5jmsvsxh2c...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
PATH does indeed have /opt/ghc/8.0.2/bin which is no doubt why my command
line call gets version 8.0.2. But since I didn't put it there (I didn't add
it in my .bashrc; some older Haskell setup did?), I don't know how to get
it out. Also, I need to use Haskell in Emacs org-mode which tends not to go
by the $PATH in a Ubuntu GUI environment. So I've installed Emacs
haskell-mode (latest from melpa, I believe.) I start it up -- and it gives
me this:
The next big Haskell project is about to start!
If I break, you can:
1. Restart: M-x haskell-process-restart
2. Configure logging: C-h v haskell-process-log (useful for debugging)
3. General config: M-x customize-mode
4. Hide these tips: C-h v haskell-process-show-debug-tips
Changed directory: /home/hercynian/Programs/Haskell/
λ>
. . . but this doesn't tell me what version. Is there a Haskell REPL
command to find out what version?
On Mon, May 14, 2018 at 1:57 PM Francesco Ariis <[email protected]> wrote:
> Hello Lawrence,
>
> On Mon, May 14, 2018 at 12:52:01PM -0400, Lawrence Bottorff wrote:
> > I've tried various removes, but to no avail. The newer version is on my
> > system:
>
> There should be no need of removing the old version.
>
> > 12:50:32:/usr/local/haskell/ghc-8.4.2-x86_64/bin$ ./ghci --version
> > The Glorious Glasgow Haskell Compilation System, version 8.4.2
>
> What does `echo $PATH` say?
>
> -F
> _______________________________________________
> 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/20180514/e06c700a/attachment-0001.html>
------------------------------
Message: 3
Date: Mon, 14 May 2018 22:31:03 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Can't remove old haskell
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On Mon, May 14, 2018 at 04:14:40PM -0400, Lawrence Bottorff wrote:
> Is there a Haskell REPL command to find out what version?
Type
:t (<>)
inside the repl, if it gives an error you are still inside 8.0.2.
------------------------------
Message: 4
Date: Mon, 14 May 2018 18:17:33 -0400
From: Lawrence Bottorff <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Can't remove old haskell
Message-ID:
<cafahfsvkvgnx1gjvtojelm-qbhuge0xhe31ynpt+aqwx7bw...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
λ> :t (<>)
(<>) :: Semigroup a => a -> a -> a
I'm curious what this is. I'm guessing it's something that later versions
can do?
On Mon, May 14, 2018 at 4:31 PM Francesco Ariis <[email protected]> wrote:
> On Mon, May 14, 2018 at 04:14:40PM -0400, Lawrence Bottorff wrote:
> > Is there a Haskell REPL command to find out what version?
>
> Type
>
> :t (<>)
>
> inside the repl, if it gives an error you are still inside 8.0.2.
> _______________________________________________
> 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/20180514/09556c52/attachment-0001.html>
------------------------------
Message: 5
Date: Tue, 15 May 2018 09:45:50 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Can't remove old haskell
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
On Mon, May 14, 2018 at 06:17:33PM -0400, Lawrence Bottorff wrote:
> λ> :t (<>)
> (<>) :: Semigroup a => a -> a -> a
>
> I'm curious what this is. I'm guessing it's something that later versions
> can do?
Yes, since GHC 8.4 the operator `<>` is part of the Prelude. Congrats
on 8.4.2 working!
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 119, Issue 7
*****************************************