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: formatting? (Alexander Chen) (nowsnow)
2. Re: formatting? (Frank Martinez)
----------------------------------------------------------------------
Message: 1
Date: Sat, 9 May 2020 06:49:20 +0800
From: nowsnow <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] formatting? (Alexander Chen)
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
> I am using a simple text editor
> so if someone has a recommendation for an IDE that simply takes care of this,
> much obliged!!
Geany is a powerful, stable and lightweight programmer's text editor that
provides tons of useful features without bogging down your workflow. It runs on
Linux, Windows and MacOS is translated into over 40 languages, and has built-in
support for more than 50 programming languages.
------------------------------
Message: 2
Date: Fri, 8 May 2020 20:09:32 -0400
From: Frank Martinez <[email protected]>
To: Alexander Chen <[email protected]>, The Haskell-Beginners
Mailing List - Discussion of primarily beginner-level topics related
to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] formatting?
Message-ID:
<CA+a3wkK9DpXx0PXDeBgo=swb7gr8wipp5bjnnhxojdz3cld...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Vim (https://wiki.haskell.org/Vim) It takes a little getting used to but
you’ll never go back. You’ll use it for so many thing.
If Vim really isn’t to your liking, Emacs might. (
https://wiki.haskell.org/Emacs) It’s more of an operating system cleverly
disguised as a text editor.
Both of these should be your first choice, in my opinion and experience.
On Thu, May 7, 2020 at 13:02 Alexander Chen <[email protected]> wrote:
> Hi,
>
> tensDigit.hs
>
> tensDigit :: Integral a => a ->a
> tensDigit x = d
> where xLast = x `div` 10
> d = xLast `mod` 10
>
> prelude> load tensDigit.hs
> parse error on input ‘=’
> Perhaps you need a 'let' in a 'do' block?
> e.g. 'let x = 5' instead of 'x = 5'
> 4 | d = xLast `mod` 10 | ^
> [1 of 1] Compiling Main ( chapter7_8.hs, interpreted )
> Failed, no modules loaded.
>
>
> I suspect this has something to do with the spacing (since this is example
> code) if so could someone explain to me what the rules on spacing are so I
> can get past this. I am using a simple text editor so if someone has a
> recommendation for an IDE that simply takes care of this, much obliged!!
>
> best,
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
--
P.S.: I prefer to be reached on BitMessage at
BM-2D8txNiU7b84d2tgqvJQdgBog6A69oDAx6
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20200508/940e065c/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 143, Issue 2
*****************************************