<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Sorry, <br>
<br>
I stand for Info <br>
E stands for Error <br>
W stands for Warning. <br>
<br>
The clause Im talking about is that the log message must be the
format char Int [char] so like this: W 10 this is a warning <br>
All the sentences that are not of this format , like for example
this one: W this is a false warning , must have another output.
<br>
That's is also true when the first Char is not a W, E or I. <br>
<br>
When it's a W , E, or I then the char must be converted to the
word Warning, Error or Info. <br>
<br>
I hope it's clear now what I want. <br>
<br>
Roelof<br>
<br>
<br>
<br>
Konstantine Rybnikov schreef op 22-2-2015 om 16:17:<br>
</div>
<blockquote
cite="mid:CAAbahfSCkdD7ymwpKOgqt6s_Y43PCUa7Fr_3n9+SRfoUWDrm3g@mail.gmail.com"
type="cite">
<p dir="ltr">Hi Roelof,</p>
<p dir="ltr">You forgot to explain what are those fields you are
talking about, and what are I/E/W . Also what are those clauses
you are talking about?</p>
<p dir="ltr">Cheers.</p>
<div class="gmail_quote">21 лют. 2015 09:03, користувач "Roelof
Wobben" <<a moz-do-not-send="true"
href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>>
написав:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
<br>
Im busy with a programm which translates log files to another
format.<br>
I also have to look if the lines in the old one have the
rigtht format.<br>
<br>
Schould I check the format and also if another field
contains a I, E or W.<br>
Or schould I do the checking in one clause and make another
case on the rest ?<br>
<br>
Roelof<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a moz-do-not-send="true"
href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a moz-do-not-send="true"
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>