[Haskell-cafe] Haskell soltion ofr I/O: is it monads or
uniqueness types, after all?
Stefan O'Rear
stefanor at cox.net
Sat Feb 10 14:18:30 EST 2007
hmm, my inexperienced forwarding attempt mangled the message...
> data Process = Getc (Char -Process)
> | Putc Char (() -Process)
> | forall a. NewIORef a (IORef a -Process)
> | forall a. ReadIORef (IORef a) (a -Process)
> | forall a. WriteIORef (IORef a) a (() -Process)
> | Exit
data Process = Getc (Char -> Process)
| Putc Char (() -> Process)
| forall a. NewIORef a (IORef a -> Process)
| forall a. ReadIORef (IORef a) (a -> Process)
| forall a. WriteIORef (IORef a) a (() -> Process)
| Exit
> exit = Cont $ \_ -Exit
exit = Cont $ \_ -> Exit
sorry.
More information about the Haskell-Cafe
mailing list