outputs during runtime

Julian Seward (Intl Vendor) v-julsew@microsoft.com
Mon, 30 Jul 2001 03:12:16 -0700


This is a multi-part message in MIME format.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C118E0.1C24AD92"

------_=_NextPart_001_01C118E0.1C24AD92
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Unfortunately that usually means that you need to let the IO type
filter down from the top level to all fns which need to print something.
Then you can emit a message perhaps in the same function which
reads the files.
=20
Or is it perhaps a buffering problem? =20
=20
J

	-----Original Message-----
	From: Nicole Gabler [mailto:gabler@ics-ag.de]=20
	Sent: Monday, July 30, 2001 10:50 AM
	To: glasgow-haskell-users@haskell.org
	Subject: outputs during runtime
=09
=09
=09
	Hello All,
	=20
	I wrote a small haskell program that amongst other things parses
some files to manipulate them. During runtime I want the program to
output information about the status every time another file is parsed.
That doesn't work, the output appears much later, mostly not until end
of program. But I need these outputs at that specific time, so what can
I do to manage it?
	=20
	Thanks
	=20
	Nicole


------_=_NextPart_001_01C118E0.1C24AD92
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =

size=3D2>Unfortunately that usually means that you need to let the IO=20
type</FONT></SPAN></DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =
size=3D2>filter=20
down from the top level to all fns which need to print=20
something.</FONT></SPAN></DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =
size=3D2>Then=20
you can emit a message perhaps in the same function =
which</FONT></SPAN></DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =
size=3D2>reads=20
the files.</FONT></SPAN></DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =
size=3D2>Or is=20
it perhaps a buffering problem?&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D087365309-30072001><FONT face=3DArial color=3D#0000ff =

size=3D2>J</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Nicole Gabler=20
  [mailto:gabler@ics-ag.de] <BR><B>Sent:</B> Monday, July 30, 2001 10:50 =

  AM<BR><B>To:</B> glasgow-haskell-users@haskell.org<BR><B>Subject:</B> =
outputs=20
  during runtime<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial size=3D2>Hello All,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I wrote a small haskell program that amongst other things parses =
some=20
  files to&nbsp;manipulate them. During runtime I want the program=20
  to&nbsp;output information about the status every time another file is =
parsed.=20
  That doesn't work, the output appears much later, mostly not until end =
of=20
  program. But I need these outputs at that&nbsp;specific time, so what =
can I do=20
  to manage it?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial=20
size=3D2>Nicole</FONT></DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>
=00
------_=_NextPart_001_01C118E0.1C24AD92--

--------------InterScan_NT_MIME_Boundary--