Bulat Ziganshin wrote:
Hello Brian,
Sunday, July 2, 2006, 10:58:29 PM, you wrote:
fromString :: String -> Atom
toString :: Atom -> String
instance Eq Atom
instance Ord Atom -- this is where things get difficult!
i think that ByteString is a very strong candidate to Atom. `memicmp`
is very fast operation, unless you plan to use really large strings
with the same beginnings
Thanks - I think I'll use ByteString as the implementation of Atom for the
moment,
Brian.
--
Logic empowers us and Love gives us purpose.
Yet still phantoms restless for eras long past,
congealed in the present in unthought forms,
strive mightily unseen to destroy us.
http://www.metamilk.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe