Manuel M T Chakravarty wrote:
[snip]
Luckily, there is a workaround (discovered by Tom Moertel on
#haskell). If you include field names in the data
definition for which you derive Show and Read, it seems to
work fine.
[snip]
Thanks. I may try this, if I get time.
Luckily, there is a workaround (discovered by Tom Moertel on
#haskell). If you include field names in the data
definition for which you derive Show and Read, it seems to
work fine.
So, in George's example
module GHCBug where
data Command =
NewLocation
| Commit
Sorry, I haven't got time to narrow this down to a test case,
but here are what I hope are the key factors:
(1) We start up applications in a child process (forked with
Posix.forkProcess)
by calling Posix.executeFile, wrapped in an Exception.catch
handler (to detect errors).
(2) Both
Bugs item #610569, was opened at 2002-09-17 07:20
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=610569group_id=8032
Category: Documentation
Group: 5.04.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to:
On Solaris:
# /home/ger/ghc-5.04.1.install/bin/ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.04.1, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\/\/ /_/\/|_| Type :? for help.
Loading package base ...
In fact the problem is more drastic than I mentioned in my last message; division by 0
doesn't seem to be catchable at all. From this program
--- cut here ---
import Exception
main =
do
excep - Exception.try (seq (1 `div` 0) (return ()))
putStrLn
George Russell [EMAIL PROTECTED] wrote,
In fact the problem is more drastic than I mentioned in my last message; division by 0
doesn't seem to be catchable at all. From this program
--- cut here ---
import Exception
main =
do
excep - Exception.try