
5 Sep
2006
5 Sep
'06
9:59 a.m.
Ross Paterson
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