[Hugs-bugs] Internal eror in Hugs, trying to read a non existing file

Henk-Jan.van.Tuyl at hotpop.com Henk-Jan.van.Tuyl at hotpop.com
Wed Sep 29 08:18:44 EDT 2004


L.S.,

The attached program reads a filename ("x.x") from file "filenames.dat";
then the program tries to read file "x.x";
this file does not exist, in the first call to "main", an internal error
message is displayed; the second time, a "file does not exist" message
is displayed.
The following shows what happens:

__   __ __  __  ____   ___       
_______________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2003
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs at haskell.org
||   || Version: Nov 2003        
_______________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

Type :? for help
Prelude>
Prelude> :l "C:\\Mijn  
documenten\\SoftwareOntwikkeling\\Haskell\\ReadALot\\Error
InGraph.lhs"
Main> main
Program error:
Program error: pattern match failure
(181 reductions, 528 cells, 1 garbage collection)
INTERNAL ERROR: Error in graph
Main>
Main> main

Program error: x.x: IO.openFile: does not exist (file does not exist)

(197 reductions, 499 cells)
Main>

-- 
Met vriendelijke groet,
Herzliche Grüße,
Best regards,
Henk-Jan van Tuyl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ErrorInGraph.lhs
Type: haskell
Size: 1702 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/hugs-bugs/attachments/20040929/1caffba7/ErrorInGraph.bat


More information about the Hugs-Bugs mailing list