Re: [Haskell] Incoherent instances can make ST monad unsound

2006-01-26 Thread Thomas Jäger
On Thu, 2006-01-26 at 20:29 -0800, [EMAIL PROTECTED] wrote: > circumstances, many things break, including the ST monad. One can > indeed break the essential guarantee of the ST monad -- for example, > create a top level STRef *and* fruitfully use in arbitrary ST > computations. The enclosed code do

Re: [Haskell] Mixing monadic and non-monadic functions

2005-09-17 Thread Thomas Jäger
Hello, I haven't followed this discussion very closely, but in case you want to play with this sort of thing, you can check out the code from my TMR-Article http://www.haskell.org/tmrwiki/FunWithLinearImplicitParameters Despite the wacky implementation it is actually surprisingly reliable, modulo