Exports of STM constructors.

2008-02-27 Thread Sterling Clover
I was recently bitten by the urge to hack around with STM, and discovered to my dismay that there's no way to get at the primitive constructors for TVar and STM, both of which are defined in GHC.Conc. Given that, when we so desire, we can get at the primitives to break IO into pieces, manually unbo

Re: H98 Text IO

2008-02-27 Thread Jules Bean
Matthew Bentham wrote: "It’s not unreasonable to have a program that wants to encode its outputin a particular encoding. The example I gave earlier still seemsreasonable to be, a program that takes input in one encoding andrecodes to a different encoding on its output, with both the input ando

Re: H98 Text IO

2008-02-27 Thread Duncan Coutts
On Wed, 2008-02-27 at 08:54 +, Chris Kuklewicz wrote: > Small correction: > > I think "./prog in vs ./prog < in " and "utf8" should be "ok". Ah yes, quite right. Similarly ./prog -o out vs ./prog > out because neither involve printing to the terminal. Duncan ___

Re: H98 Text IO

2008-02-27 Thread Matthew Bentham
- Original Message > From: Johan Tibell <[EMAIL PROTECTED]> > To: Duncan Coutts <[EMAIL PROTECTED]> > Cc: Haskell Libraries <[EMAIL PROTECTED]>; GHC-users list > ; Simon Marlow <[EMAIL PROTECTED]> > Sent: Wednesday, February 27, 2008 9:25:39 AM > Subject: Re: H98 Text IO > > On Wed, Feb

Re: H98 Text IO

2008-02-27 Thread Johan Tibell
On Wed, Feb 27, 2008 at 1:06 AM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > As a data point, Java and python use "always locale" as default if you > don't specify an encoding when opening a text stream. > > I think personally I'm coming round to the "always locale" point of > view. We already h

Re: H98 Text IO

2008-02-27 Thread Chris Kuklewicz
Small correction: I think "./prog in vs ./prog < in " and "utf8" should be "ok". (and I thought this was switched to Glasgow-haskell-users@haskell.org) David Leuschner wrote: >> Let me try and summarise: > > Thanks for the great summary! And thanks to Emacs' table mode here're the > results dis