I am using Hugs 1.4, Version 970410, Windows 95.  Below, are two simple
functions, testa, and testb, followed by a copy of a session.  The first
evaluation of 'testa 2' results in two blank lines following the 'Program error:
...' line.  The second evaluation of 'testa 2' results in a single blank line
following the 'Program error: ...' line.  Next, evaluation of 'testb 2' results
in a quote mark '"' on a line by itself followed by the 'Program error: ...'
line.

Is this how one would expect Hugs to operate?

Richard E. Adams
E-mail: [EMAIL PROTECTED]
Tel.: (702) 451-0162


testa 1  = putStr "one"
testa _  = error "argument value of 1 required"

testb 1  = "one"
testb _  = error "argument value of 1 required"

---------------------
Main> :load testa.hs

     ...

Main> testa 2

Program error: argument value of 1 required


Main> testa 2

Program error: argument value of 1 required

Main> testb 2
"
Program error: argument value of 1 required

Main>

Reply via email to