[Haskell-cafe] using an external application

Stuart Cook scook0 at gmail.com
Fri Nov 2 07:37:05 EDT 2007

On 11/2/07, Andrew Butterfield <Andrew.Butterfield at cs.tcd.ie> wrote:
> I'm puzzled - when I run this on GHCi (v6.4, Windows XP) I get the
> following outcome
> *Main>main
> The process cannot access the file because it is being used by another
> process.
> hello
> *Main>

Under GHCi 6.6 I get this:

  *Main> main

My guess is that 6.4's readFile always opens the file as soon as it is
called, whereas 6.6's readFile delays opening until the list is
actually forced.  Either way, goblins all round!


More information about the Haskell-Cafe mailing list