Sorry,

I stand for Info
E stands for Error
W stands for Warning.

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
All the sentences that are not of this format , like for example this one:   W this is a false warning , must have another output.
That's is also true when the first Char is not a W, E or I.

When it's a W , E, or I then the char must be converted to the word Warning, Error or Info.

I hope it's clear now what I want.

Roelof



Konstantine Rybnikov schreef op 22-2-2015 om 16:17:

Hi Roelof,

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?

Cheers.

21 лют. 2015 09:03, користувач "Roelof Wobben" <r.wobben@home.nl> написав:
Hello,


Im busy with a programm which translates log files to another format.
I also have to look if the lines in the old one have the rigtht format.

Schould I check  the format and also if another  field contains a I, E or W.
Or schould I do the checking in one clause and make another case  on the rest ?

Roelof


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe