time library dependencies

Sterling Clover s.clover at gmail.com
Tue Jun 2 08:11:45 EDT 2009


On Jun 2, 2009, at 4:08 AM, Bayley, Alistair wrote:

> Without wanting to sound like I'm telling you to suck eggs...
>
> What are the code standards for the HP libs? I was under the  
> impression
> that it was best to maintain H98 compatibility where possible,
> especially so for libraries in the old standard libs distribution.  
> I did
> a quick search for platform standards but didn't find anything  
> relevant.
>
> For H98 compatibility, is it not too onerous to have generated or
> hand-written Data & Typeable instances in the source? I'm guessing  
> that
> the library is fairly stable, so I'd expect that it would add  
> little to
> the maintenance costs (but then I'm not maintaining time, so that's a
> fairly glib claim).

It seems to me that the sane and simple thing to do would just be to  
make the problematic parts of the code conditional using cpp, as is  
done for, e.g., Data.Map:

http://www.haskell.org/ghc/docs/latest/html/libraries/containers/src/ 
Data-Map.html

Cheers,
S.


More information about the Libraries mailing list