Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/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.  HLint: use void instead of return() (harry)
   2. Re:  Editor choices (carlos gomez)
   3. Re:  HLint: use void instead of return() (Kim-Ee Yeoh)
   4. Re:  HLint: use void instead of return() (David McBride)
   5. Re:  HLint: use void instead of return() (harry)
   6. Re:  HLint: use void instead of return() (David McBride)
   7. Re:  Editor choices (Chadda? Fouch?)


----------------------------------------------------------------------

Message: 1
Date: Mon, 22 Apr 2013 11:41:28 +0000 (UTC)
From: harry <[email protected]>
Subject: [Haskell-beginners] HLint: use void instead of return()
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

I have some monadiccode of the form:
  foo >>= something >>= bar >> return ()

HLint is telling me to change this to:
  void (foo >>= something >>= bar)

Why is the second form considered better? I actually find the original to be
clearer.




------------------------------

Message: 2
Date: Mon, 22 Apr 2013 08:51:40 -0400
From: carlos gomez <[email protected]>
Subject: Re: [Haskell-beginners] Editor choices
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <cahg7deqyglprdqnlwaatazmc+-sz1yromcd84gnhgtf0pdr...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Just to mention, I have seen a plugin for programming in Haskell in
Intellij Idea; I didn't experiment much with the plugin but Intellij Idea
is a good IDE.


On 22 April 2013 03:37, Emmanuel Surleau <[email protected]> wrote:

> If you're a vim person, I see there is a script to search hoogle within
> vim: http://www.vim.org/scripts/script.php?script_id=2672
>
> Last version from 2011 though. But syntastic + ghc-mod-vim goes a long way
>
>
> On Mon, Apr 22, 2013 at 5:52 AM, Rustom Mody <[email protected]>wrote:
>
>>
>>
>> On Mon, Apr 22, 2013 at 4:41 AM, Jeff Lasslett 
>> <[email protected]>wrote:
>>
>>> Hi Amy,
>>>
>>> On 19 April 2013 19:13, Amy de Buitl?ir <[email protected]> wrote:
>>>
>>>> Jeff Lasslett <jeff.lasslett <at> gmail.com> writes:
>>>> > So I find myself playing around with XMonad source code.
>>>>
>>>> Have you seen the "XMonad deconstructed" videos? They're very well done.
>>>> https://www.youtube.com/watch?v=63MpfyZUcrU (part 1)
>>>> https://www.youtube.com/watch?v=ivdyLaH3PhY (part 2)
>>>>
>>>
>>> Yes, I have watched these and i agree with you.  They are quite well
>>> done.  I have found them very helpful.  Sadly they don't touch much on X
>>> event handling within XMonad, which is what I am most interested in.
>>>
>>>>
>>>> > I'd like the editor/IDE to tell me the type of a thing, or at least
>>>> the
>>>> module it is defined in.
>>>>
>>>> Leksah and EclipseFP are two options you might want to consider. You can
>>>> find links to them, and information about other options here:
>>>>
>>>
>>> Leksah sound good, although perhaps a little "heavier" than I would
>>> like.  I'm not a huge fan of eclipse, though I may take a look at eclipsefp.
>>>
>>>
>>
>> Its now a decade since this was written
>> http://osteele.com/posts/2004/11/ides
>> Unfortunately the divide remains as true  today :-(
>>
>> --
>> http://www.the-magus.in
>> http://blog.languager.org
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130422/bef6eb01/attachment-0001.htm>

------------------------------

Message: 3
Date: Mon, 22 Apr 2013 20:20:42 +0700
From: Kim-Ee Yeoh <[email protected]>
Subject: Re: [Haskell-beginners] HLint: use void instead of return()
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <capy+zdtqdpebjgaz__ful-mchif0w29erg_bfxb-ggkqjoq...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

In corner cases like this, it really looks like six of one, half dozen of
the other.

In other words, feel free to ignore hlint when you need to. The heuristics
aren't tuned to be 100% perfect.

-- Kim-Ee


On Mon, Apr 22, 2013 at 6:41 PM, harry <[email protected]> wrote:

> I have some monadiccode of the form:
>   foo >>= something >>= bar >> return ()
>
> HLint is telling me to change this to:
>   void (foo >>= something >>= bar)
>
> Why is the second form considered better? I actually find the original to
> be
> clearer.
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130422/1de4aeb8/attachment-0001.htm>

------------------------------

Message: 4
Date: Mon, 22 Apr 2013 09:29:47 -0400
From: David McBride <[email protected]>
Subject: Re: [Haskell-beginners] HLint: use void instead of return()
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAN+Tr41Je6rD1FZFEwBzKiS=euUPi2vFPhjh=tvgw8wn8x8...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

The vast majority of people use the first form.  I guess the second form
would be used if void were in prelude but it isn't, so no one does.


On Mon, Apr 22, 2013 at 7:41 AM, harry <[email protected]> wrote:

> I have some monadiccode of the form:
>   foo >>= something >>= bar >> return ()
>
> HLint is telling me to change this to:
>   void (foo >>= something >>= bar)
>
> Why is the second form considered better? I actually find the original to
> be
> clearer.
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130422/1eeee4ba/attachment-0001.htm>

------------------------------

Message: 5
Date: Mon, 22 Apr 2013 13:29:48 +0000 (UTC)
From: harry <[email protected]>
Subject: Re: [Haskell-beginners] HLint: use void instead of return()
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

So when is void better?

Kim-Ee Yeoh <ky3 <at> atamo.com> writes:

> In corner cases like this, it really looks like six of one, half dozen of
the other.
> In other words, feel free to ignore hlint when you need to. The heuristics
aren't tuned to be 100% perfect.




------------------------------

Message: 6
Date: Mon, 22 Apr 2013 09:54:23 -0400
From: David McBride <[email protected]>
Subject: Re: [Haskell-beginners] HLint: use void instead of return()
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAN+Tr42r2=7uhxgwatvikotj5nppufx6opvh7lq9n2tpmrb...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

If you think it looks prettier, then use it.  But it is just (\x -> x >>
return ()) under the hood so it makes no difference.


On Mon, Apr 22, 2013 at 9:29 AM, harry <[email protected]> wrote:

> So when is void better?
>
> Kim-Ee Yeoh <ky3 <at> atamo.com> writes:
>
> > In corner cases like this, it really looks like six of one, half dozen of
> the other.
> > In other words, feel free to ignore hlint when you need to. The
> heuristics
> aren't tuned to be 100% perfect.
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130422/f6e3da26/attachment-0001.htm>

------------------------------

Message: 7
Date: Mon, 22 Apr 2013 18:11:40 +0200
From: Chadda? Fouch? <[email protected]>
Subject: Re: [Haskell-beginners] Editor choices
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CANfjZRapDHO4Lo9-AijN98XU_s=z55_ouj7ovvhsczuc1s4...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I'm surprised nobody mentioned emacs, I know the emacs/vim divides run deep
but a lot of haskeller make do with emacs, haskell-mode contains what you
ask for (shortcut to ask the type of something to ghci) and much more.

-- 
Jeda?


On Mon, Apr 22, 2013 at 2:51 PM, carlos gomez <[email protected]> wrote:

> Just to mention, I have seen a plugin for programming in Haskell in
> Intellij Idea; I didn't experiment much with the plugin but Intellij Idea
> is a good IDE.
>
>
> On 22 April 2013 03:37, Emmanuel Surleau <[email protected]>wrote:
>
>> If you're a vim person, I see there is a script to search hoogle within
>> vim: http://www.vim.org/scripts/script.php?script_id=2672
>>
>> Last version from 2011 though. But syntastic + ghc-mod-vim goes a long
>> way
>>
>>
>> On Mon, Apr 22, 2013 at 5:52 AM, Rustom Mody <[email protected]>wrote:
>>
>>>
>>>
>>> On Mon, Apr 22, 2013 at 4:41 AM, Jeff Lasslett 
>>> <[email protected]>wrote:
>>>
>>>> Hi Amy,
>>>>
>>>> On 19 April 2013 19:13, Amy de Buitl?ir <[email protected]> wrote:
>>>>
>>>>> Jeff Lasslett <jeff.lasslett <at> gmail.com> writes:
>>>>> > So I find myself playing around with XMonad source code.
>>>>>
>>>>> Have you seen the "XMonad deconstructed" videos? They're very well
>>>>> done.
>>>>> https://www.youtube.com/watch?v=63MpfyZUcrU (part 1)
>>>>> https://www.youtube.com/watch?v=ivdyLaH3PhY (part 2)
>>>>>
>>>>
>>>> Yes, I have watched these and i agree with you.  They are quite well
>>>> done.  I have found them very helpful.  Sadly they don't touch much on X
>>>> event handling within XMonad, which is what I am most interested in.
>>>>
>>>>>
>>>>> > I'd like the editor/IDE to tell me the type of a thing, or at least
>>>>> the
>>>>> module it is defined in.
>>>>>
>>>>> Leksah and EclipseFP are two options you might want to consider. You
>>>>> can
>>>>> find links to them, and information about other options here:
>>>>>
>>>>
>>>> Leksah sound good, although perhaps a little "heavier" than I would
>>>> like.  I'm not a huge fan of eclipse, though I may take a look at 
>>>> eclipsefp.
>>>>
>>>>
>>>
>>> Its now a decade since this was written
>>> http://osteele.com/posts/2004/11/ides
>>> Unfortunately the divide remains as true  today :-(
>>>
>>> --
>>> http://www.the-magus.in
>>> http://blog.languager.org
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130422/6f6e08f6/attachment.htm>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 58, Issue 34
*****************************************

Reply via email to