Not in standard Haskell.  But you might find these interesting

        "A semantics for imprecise exceptions"
        "Asynchronous exceptions in Haskell"

both on my home page http://research.microsoft.com/~simonpj 
(but very much joint work; and both implemented in GHC and STG Hugs)

Simon

| -----Original Message-----
| From: Chris Angus [mailto:[EMAIL PROTECTED]]
| Sent: 06 April 2000 09:13
| To: [EMAIL PROTECTED]
| Subject: Untrusted code
| 
| 
| Hi,
| 
| I was wondering if there was any way to run code which possibly
| threw an error in any version of Haskell.
| 
| e.g.
| 
| efficient3rdPartyAlgorithm :: Int -> Int
| myOwnSlowAlgorithm :: Int -> Int
| 
| i.e. the idea is you run the efficent version and if 
| falls over you run your own version.
| 
| Cheers
| 
| Chris
| 

Reply via email to