[Haskell-beginners] Configuration of Environment

Leonhard Applis Leonhard.Applis at protonmail.com
Fri Nov 22 14:13:15 UTC 2019


> Hi All,
> 

> I’m a newcomer to Haskell and mailing list, so I am not sure if my question is proper.
> 

> I use notepad++ to learn Haskell now. Are there any suggestions or conventions which can help me learn Haskell?
> 

> Best regards,
> Juncheng

Hi Juncheng, 


I think for learning "code", as in writing nice code, get yourself the Hlinter [1] running. 

It really spots great improvements and some very haskelly ways. 

For Learning purposes I would suggest that you first "try it your way" step by step, and check every step with hlint. 

So: fun1 -> Hlint -> fun2 -> Hlint 


Additionally you might want to enable a spell-checker (like, a normal one, for english). 


Last thing you might find very useful is a local Hoogle [2] install.
It's amazingly convenient if you want to know, e.g. the function which gives a length of a list, but you don't remember if it was len, length, size, count ... 

So you just search for [a] -> Int and voila. 

Second Hoogle can help you find similar functions to what you are currently building, often you are implementing something that is somewhere as a higher order function already. 


best regards,
Leonhard



[1] Hlint: http://hackage.haskell.org/package/hlint
[2] Hoogle: http://hackage.haskell.org/package/hoogle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - Leonhard.Applis at protonmail.com - 0x807FDDF3.asc
Type: application/pgp-keys
Size: 1843 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20191122/582afdf3/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 477 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20191122/582afdf3/attachment.sig>


More information about the Beginners mailing list