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. Re:  "pure" versus "impure" code (Costello, Roger L.)
   2. Re:  Load functions from broken source code       files?
      (Antoine Latter)
   3. Re:  Load functions from broken source code       files?
      (Christopher Howard)
   4.  code review? (Chris Bolton)


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

Message: 1
Date: Sat, 21 May 2011 13:18:05 -0400
From: "Costello, Roger L." <[email protected]>
Subject: Re: [Haskell-beginners] "pure" versus "impure" code
To: "[email protected]" <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

Thanks to everyone who responded to my questions. Excellent! I have learned a 
lot. It is a fascinating subject.

I summarized what I learned (MS Word document):

http://xfront.com/Pure-versus-Impure-Code.docx

Please let me know of any errors that I made.

/Roger



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

Message: 2
Date: Sat, 21 May 2011 16:16:29 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Load functions from broken source
        code    files?
To: Christopher Howard <[email protected]>
Cc: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Fri, May 20, 2011 at 10:44 PM, Christopher Howard
<[email protected]> wrote:
> Is there some way in GHCi to load a single function from a broken source
> code file? E.g, you're writing a program, the main function is
> incomplete, and half the other functions are broken, but you are
> developing one function and you just want to load in the current version
> of that, reload it after some editing, and so forth.
>
> I can see how normally that would not be a good idea, but I was
> wondering if there was some hackish way to do it that was fairly easy
> and quick.
>

I stub things out with the function 'undefined', which can get me part
of the way to typechecking.

> --
> frigidcode.com
> theologia.indicium.us
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



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

Message: 3
Date: Sat, 21 May 2011 15:15:51 -0800
From: Christopher Howard <[email protected]>
Subject: Re: [Haskell-beginners] Load functions from broken source
        code    files?
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 05/21/2011 01:54 PM, Tom Murphy wrote:
> I'm sorry if this is obvious, but it's only 8 keystrokes to comment
> out everything before and after the function you're testing:
> {-
> ...
> -}
> f x = ...
> {-
> ...
> }
> 
> Tom

Ha! Provided, of course, your editor knows that you need to first move
your cursor to the point just before the function, then to the point
just after your function, then to the beginning of the file (after any
required imports) then to the end of the file. Otherwise, that might be
more like a 12 stroke action, granting that your function is only one
line long and that you happen to be on the same line as your function.
Unless, of course, you are using a graphical editor and use your mouse
to set cursor position, in which case 8 keystrokes is possible, but then
the time required is proportional to the size of your source code file
and the speed of text scrolling. And, of course, you will eventually
need to uncomment the code, which will require additional keystrokes. ;)

-- 
frigidcode.com
theologia.indicium.us



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

Message: 4
Date: Sat, 21 May 2011 23:02:26 -0700
From: Chris Bolton <[email protected]>
Subject: [Haskell-beginners] code review?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hey guys. Pretty new to haskell here. I've started off by writing a small
command-line interface to plurk.. I was just wondering if anyone would be
willing to give everything a look-over and lemme know what kinds of things I
should be looking to improve upon, style-wise. Not sure I'm currently doing
things in the  'haskell-way' so to speak :P. Thanks a bunch!

https://github.com/saiko-chriskun/hermes (note: the JSON and Plurkell
submodules are also mine.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110521/d6549f9b/attachment.html>

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

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


End of Beginners Digest, Vol 35, Issue 44
*****************************************

Reply via email to