Re: [Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ganesh Sittampalam
On Sat, 6 Sep 2008, Brandon S. Allbery KF8NH wrote: On 2008 Sep 6, at 18:25, Ashley Yakeley wrote: 2. If the dynamic loader loads an endless stream of different modules containing initialisers, memory will thus leak. I think if the issue is this vs. not being able to guarantee any once-only

[Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ganesh Sittampalam
On Sat, 6 Sep 2008, Ashley Yakeley wrote: Ganesh Sittampalam wrote: The set of ACIO expressions exp is the "static initialisers" of M. The RTS must note when each static initialiser is run, and cache its result val. Let's call this cache of vals the "static results cache" of M. When M is loa

Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-07 Thread david48
On Fri, Sep 5, 2008 at 1:05 PM, Janis Voigtlaender <[EMAIL PROTECTED]> wrote: > See John's comment, right there in the online version: > > "The system that generated this webpage didn't have HDBC installed at > the time. We'll get that fixed and re-post this chapter. In the > meantime, unfortunatel

[Haskell-cafe] HXT from schema to data model

2008-09-07 Thread Pierre-Edouard Portier
Hi! Is there a way to generate a data model and a set of picklers from an XML (or RelaxNG) Schema using the HXT tool box? Thank You, Pierre-Edouard ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Brandon S. Allbery KF8NH
On 2008 Sep 7, at 6:23, Ganesh Sittampalam wrote: On Sat, 6 Sep 2008, Ashley Yakeley wrote: Ganesh Sittampalam wrote: The set of ACIO expressions exp is the "static initialisers" of M. The RTS must note when each static initialiser is run, and cache its result val. Let's call this cache of v

Re: [Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ganesh Sittampalam
On Sun, 7 Sep 2008, Brandon S. Allbery KF8NH wrote: plug-in that is reloaded in different forms again and again. And I see module K which does something I want, so I use it. It so happens that K uses M, which has a <-. If I knew that using K in my plug-in would cause a memory leak, I would avo

Re: [Haskell-cafe] HXT from schema to data model

2008-09-07 Thread Andrea Rossato
On Sun, Sep 07, 2008 at 03:35:40PM +0200, Pierre-Edouard Portier wrote: > Hi! > Is there a way to generate a data model and a set of picklers from an XML (or > RelaxNG) Schema using the HXT tool box? not that I'm aware of. There's something for generating a data type and an access interface from

Re: [Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Brandon S. Allbery KF8NH
On 2008 Sep 7, at 12:10, Ganesh Sittampalam wrote: On Sun, 7 Sep 2008, Brandon S. Allbery KF8NH wrote: Since you consider memory leaks to be worse than correct behavior, Not leaking memory is *part* of correct behaviour. If <- is to be created at all, it should be created with restrictions t

Re: [Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ganesh Sittampalam
On Sun, 7 Sep 2008, Brandon S. Allbery KF8NH wrote: You seem to think we must never insure that something will only be run once, that any program that does require this is broken. As such, the standard Haskell libraries (including some whose interfaces are H98) are unfixably broken and you'd

[Haskell-cafe] Re: language proposal: ad-hoc overloading

2008-09-07 Thread John Smith
Ryan Ingram wrote: module Prob where import qualified Data.Map as M newtype Prob p a = Prob { runProb :: [(a,p)] } combine :: (Num p, Ord a) => Prob p a -> Prob p a combine m = Prob $ M.assocs $ foldl' (flip $ uncurry $ M.insertWith (+)) M.empty $ runProb m Do you see it? All

Re: [Haskell-cafe] Re: language proposal: ad-hoc overloading

2008-09-07 Thread Brandon S. Allbery KF8NH
On 2008 Sep 6, at 19:09, John Smith wrote: Ryan Ingram wrote: module Prob where import qualified Data.Map as M newtype Prob p a = Prob { runProb :: [(a,p)] } combine :: (Num p, Ord a) => Prob p a -> Prob p a combine m = Prob $ M.assocs $ foldl' (flip $ uncurry $ M.insertWith (+)) M.em

[Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ashley Yakeley
Ganesh Sittampalam wrote: Suppose I am writing something that I intend to be used as part of a plug-in that is reloaded in different forms again and again. And I see module K which does something I want, so I use it. It so happens that K uses M, which has a <-. If I knew that using K in my plug

Re: [Haskell-cafe] Re: [Haskell] Top Level <-

2008-09-07 Thread Curt Sampson
On 2008-08-28 14:45 -0700 (Thu), Jonathan Cast wrote: > Now, I happen to know that the only top-level handles that can be > established without issuing an open system call are > > stdin > stdout > stderr > > (unless you're happy to have your global nonStdErr start its life > attached to an unope

[Haskell-cafe] Re: Top Level <-

2008-09-07 Thread Ganesh Sittampalam
On Sun, 7 Sep 2008, Ashley Yakeley wrote: Ganesh Sittampalam wrote: Suppose I am writing something that I intend to be used as part of a plug-in that is reloaded in different forms again and again. And I see module K which does something I want, so I use it. It so happens that K uses M, which

[Haskell-cafe] Munging wiki articles with tagsoup

2008-09-07 Thread Gwern Branwen
Hiya Neil. So recently I've been trying to come up with some automated system to turn The Monad Reader articles like those in into wiki-formatted articles for putting on Haskell.org. Thus far, I've had the most success with SVN Pandoc. Pandoc does