[EMAIL PROTECTED] reports the following problem.

Version:       1.4 Beta (Version 971106) 
OS:            SGI Irix 6.3 
compiler:      SGI cc compiler version 7.3 
configuration: CC=cc CFLAGS=-O2 
Expected behaviour:
given David Elsworthy's test file
f :: Int -> String
f x = show (x,x,x)
g = 1.0 :: Int
load this into hugs, at the error message comment out g in editor and reload
this succeeds, now evaluate f 1
result: "(1,1,1)"
Observed behaviour:
evaluating f 1 gives a program error: {.... followed by an internal error

Transcript:
neon% hugs test.hs
      ___    ___   ___    ___   __________   __________                        
     /  /   /  /  /  /   /  /  /  _______/  /  _______/       Hugs 1.4 beta    
    /  /___/  /  /  /   /  /  /  / _____   /  /______                          
   /  ____   /  /  /   /  /  /  / /_   /  /______   /  The Nottingham and Yale
  /  /   /  /  /  /___/  /  /  /___/  /  _______/  /    Haskell User's System 
 /__/   /__/  /_________/  /_________/  /_________/         Version 971106

   Copyright (c) The University of Nottingham and Yale University, 1994-1997.
    Bug reports: [EMAIL PROTECTED]   Web: http://www.haskell.org/hugs.

Reading file "/home/neon/tweed/hugs/lib/Prelude.hs":
Reading file "test.hs":
Type checking      
ERROR "test.hs" (line 3): Int is not an instance of class "Fractional"
Prelude> :r
Reading file "test.hs":
                   
Hugs session for:
/home/neon/tweed/hugs/lib/Prelude.hs
test.hs
Main> f 1
"
Program error: {Show_Char_showList_v825 
INTERNAL ERROR: Error in graph

Code:
see expected behaviour


Reply via email to