FiniteMap
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Tue Sep 5 09:59:21 EDT 2006
Ross Paterson <ross at soi.city.ac.uk> wrote:
> Why not do it the other way round:
>
> #if __GLASGOW_HASKELL__ >= 604 || __NHC__ >= 118 || defined(__HUGS__)
> -- Data.Map, if it is available
> import Prelude hiding (lookup)
> import Data.Map (Map, lookup, fromList)
> #else
Fair enough. Like I say, these lookup structures are not critical. For
many simple XML documents, ordinary lists might actually be faster for
lookups, despite their worse asymptotic complexity...
Does this mean you can re-instate HaXml as a package built by default
with Hugs?
Regards,
Malcolm
More information about the Cvs-hugs
mailing list