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. Problem getting haskell-mode working with emacs on windows
(George Taylor)
2. Re: Bool newtype (Rein Henrichs)
3. Re: Bool newtype (Imants Cekusins)
----------------------------------------------------------------------
Message: 1
Date: Sat, 13 Aug 2016 20:37:57 +0200
From: "George Taylor" <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Problem getting haskell-mode working with
emacs on windows
Message-ID:
<trinity-197b8d60-7226-4843-bd74-990adc4a706c-1471113477450@3capp-mailcom-bs15>
Content-Type: text/plain; charset=UTF-8
Hello,
Environment: Win7 32bit, Emacs 24.5.1, ghci 7.8.3
I have had Haskell working with Windows 7 and emacs previously, but have had
issues, and am attempting to get everything working again. Problems.
I searched for "Install Haskell Emacs", and found a link to the page
https://wiki.haskell.org/Emacs/Installing_haskell-mode
But this page was blanked on 11 April 2016, with no information as to where to
go.
I looked at the previous version of the page, and it said to "place the basic
mode haskell-mode.el and the modules you want to use in [a suitable directory,
I used "~/haskell-extensions"], add the following command to your init file
(~/.emacs):
(load "~/lib/emacs/haskell-site-file")"
I did the above (but just with haskell-mode.el) and launched emacs, and got a
message:
"File error: Cannot open load file, no such file or directory,
~/haskell-extensions/haskell-site-file"
in emacs, as an experiment, I did M-x Load file:
C:\home/haskell-extensions/haskell-mode.el
And got the message "Cannot open load file: no such file or directory,
haskell-customize"
I downloaded haskell-customize.el and placed it in ~/haskell-extensions, and
tried again, but no joy.
Questions:
0. Is haskell-mode depracated? It no longer seems to be available at MELPA.
1. Why was the page "https://wiki.haskell.org/Emacs/Installing_haskell-mode"
blanked?
2. Is a similar, current set of instructions available?
3. Should I be able to load haskell-mode using M-x load-file? If so, what
other .el (or other) files are required, and where should they be placed?
4. Is there a dissimilar set of instructions available?
Any help will win thousands in prizes.
------------------------------
Message: 2
Date: Sat, 13 Aug 2016 20:27:22 +0000
From: Rein Henrichs <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Bool newtype
Message-ID:
<CAJp6G8yrxYUE1QYCkW29WxUQySDArVVN6NPV2AuHyWGG5=0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Consider replacing your bools with meaningful sum types, which avoids this
issue, prevents boolean blindness, and makes your code more
self-documenting.
For example, instead of newtype SwitchsState = SwitchState Bool, data
SwitchState = On | Off
On Sun, Aug 7, 2016 at 2:47 PM Imants Cekusins <[email protected]> wrote:
> found it:
>
> https://wiki.haskell.org/GHC/Coercible
>
> yep, it type checks.
>
> Ta
> _______________________________________________
> 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/20160813/1ab998e3/attachment-0001.html>
------------------------------
Message: 3
Date: Sun, 14 Aug 2016 08:06:26 +0200
From: Imants Cekusins <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Bool newtype
Message-ID:
<cap1qinbobbxo-z9bm1+uedrnqp4uivddehor3vwaxz2jpen...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
> data SwitchState = On | Off
yep, this is clearer than newtype Bool. "If"s may be replaced with "case",
and code becomes shorter.
Nice one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20160814/1f0c41cd/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 98, Issue 11
*****************************************