<div><div dir="auto">Vim (<a href="https://wiki.haskell.org/Vim">https://wiki.haskell.org/Vim</a>) It takes a little getting used to but you’ll never go back. You’ll use it for so many thing.</div></div><div dir="auto"><br></div><div dir="auto">If Vim really isn’t to your liking, Emacs might. (<a href="https://wiki.haskell.org/Emacs">https://wiki.haskell.org/Emacs</a>) It’s more of an operating system cleverly disguised as a text editor.</div><div dir="auto"><br></div><div dir="auto">Both of these should be your first choice, in my opinion and experience.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 7, 2020 at 13:02 Alexander Chen <<a href="mailto:alexander@chenjia.nl">alexander@chenjia.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Arial;font-size:13px">Hi,<div><br></div><div>tensDigit.hs</div><div><br></div><div>tensDigit :: Integral a => a ->a<br>tensDigit x = d<br> where xLast = x `div` 10<br> d = xLast `mod` 10<br><br>prelude> load tensDigit.hs</div><div><font color="#ff0000">parse error on input ‘=’</font></div><div><div><font color="#ff0000">Perhaps you need a 'let' in a 'do' block?</font></div><div><font color="#ff0000">e.g. 'let x = 5' instead of 'x = 5'</font></div><div><font color="#ff0000">4 | d = xLast `mod` 10 | ^</font></div><div><font color="#ff0000">[1 of 1] Compiling Main ( chapter7_8.hs, interpreted )</font></div><div><font color="#ff0000">Failed, no modules loaded.</font></div><br><br><div><div style="font-family:Arial;font-size:13px">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!!</div></div></div><div style="font-family:Arial;font-size:13px"><br></div><div style="font-family:Arial;font-size:13px">best,</div></div>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">P.S.: I prefer to be reached on BitMessage at BM-2D8txNiU7b84d2tgqvJQdgBog6A69oDAx6</div>