At 2001-09-25 01:53, Manuel M. T. Chakravarty wrote:
>* I am not a big fan of introducing an extra monad (`GUI' in
> this case). It can easily become a pain in programs that
> do a lot of "normal" IO as you have to lift all IO
> functions to GUI.
Heh. I had to do this for JVM-Bridge because all the JNI functions need
the JavaVM. A bit like this:
data JVM a = MkJVM (JavaVM -> IO a)
instance Monad JVM where etc.
...actually there's more to the 'context' than that, but you get the
idea. Of course there's a 'callIO' function to make lifting as painless
as possible.
On the other hand with the full Java API hopefully there's less necessity
to use "normal" IO at all anymore so perhaps it will be less of an issue.
--
Ashley Yakeley, Seattle WA
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell
- RE: GUI Library Task Force Simon Peyton-Jones
- RE: GUI Library Task Force Manuel M. T. Chakravarty
- RE: GUI Library Task Force S. Alexander Jacobson
- Re: GUI Library Task Force Ian Lynagh
- Re: GUI Library Task Force Manuel M. T. Chakravarty
- Re: GUI Library Task Force Matt Harden
- RE: GUI Library Task Force Peter Achten
- Re: GUI Library Task Force Sengan
- RE: GUI Library Task Force Ashley Yakeley
- RE: GUI Library Task Force S. Alexander Jacobson
- Re: GUI Library Task Force Tim Sauerwein
- Re: GUI Library Task Force Lennart Augustsson
- Re: GUI Library Task Force S. Alexander Jacobson
- Re: GUI Library Task Force Lennart Augustsson
- Re: GUI Library Task Force Ketil Malde
- Namespaces (was Re: GUI Library Task For... Hal Daume III
- Re: Namespaces (was Re: GUI Library ... Mark Carroll
- Re: Namespaces (was Re: GUI Libr... Hal Daume III
- Re: Namespaces (was Re: GUI... John Meacham
