Exceptions

Arjan van IJzendoorn afie at cs.uu.nl
Tue Nov 14 09:04:28 EST 2000


Hi there,

I just installed ghc-4.08.1 on a Win2k computer. Then I tried to compile a 
program that uses exceptions. Compilation succeeds, but running the program 
causes a "Application Error" dialog to appear. It says "The application 
failed to initialize properly (0xc0000005). Click on OK to terminate the 
application.". Here is the Haskell program:

--
module Main(main) where

import Exception

main = catchAllIO (putStrLn (head ([] :: [String])))
                   (\e -> putStrLn "hi" )

--

Compiled it with

ghc-4.08.1 -i/apps/ghc/lib/imports/lang -syslib lang Main.hs

Can you help me?

Arjan (afie at cs.uu.nl)





More information about the Glasgow-haskell-bugs mailing list