RE: orphan modules

2002-08-02 Thread Simon Marlow
in the ghc docs, section 4.9.8, it says You can identify an orphan module by looking in its interface file, M.hi. If there is a ``!'' on the first line, GHC considers it an orphan module. which i don't think is true anymore since .hi files are binary now... Fixed, thanks. Simon

Re: how to catch GHC no threads to run exception?

2002-08-02 Thread Volker Stolz
In local.haskell, you wrote: Since I have 3 threads waiting on takeMVar, do I have to wrap all of them with Exception.catch? Yes. Especially since ghc-5.04, you cannot be sure which of the blocked threads will get killed first:

Re: slightly ot: data structure question

2002-08-02 Thread George Russell
Andrew Bromage wrote On Mon, Jul 29, 2002 at 02:50:55PM -0700, Hal Daume III wrote: I need a data structure which is a map from Ints to Doubles; the distribution of the Ints is in the range say 0-2 and a map will contain somewhere around 100-200 elements. I need to be able to query

Re: idiom for different implementations of same idea

2002-08-02 Thread Hal Daume III
Hi, In similar situations, especially if there is more than one useful way to use the various parts of an algorithm, I used often prefer existentials: data Model = forall markup table alignments. Model { prepareData :: Data () - Data markup, initialize :: Data

Re: idiom for different implementations of same idea

2002-08-02 Thread Dr. Harald Holtmann
Von: Hal Daume III Hi, In similar situations, especially if there is more than one useful way to use the various parts of an algorithm, I used often prefer existentials: data Model = forall markup table alignments. Model { prepareData :: Data () - Data markup,