Some things about haskell-src

Marco Túlio Gontijo e Silva marcot at riseup.net
Sat Sep 27 19:01:02 EDT 2008


Hello,

Op vrijdag 26-09-2008 om 11:04 uur [tijdzone -0300], schreef Marco Túlio
Gontijo e Silva:
> I'm using haskell-src, and I noticed that the data types defined in
> Language.Haskell.Syntax don't derive Ord.  It makes sense, cause there's
> no logical way to ordenate them, but it makes it impossible to use with
> Data.Set functions, such as fromList.  It would be good to be possible
> to use Data.Set with these types, so maybe including deriving Ord to the
> data types is a good idea.

I've made a patch to haskell-src 1.0.1.2 that makes all types instance
of Ord.

Greetings.

-- 
marcot
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
  Rua Turfa, 639/701
  Prado 30410-370
  Belo Horizonte/MG Brasil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ord.patch
Type: text/x-patch
Size: 7029 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/libraries/attachments/20080927/a5fd3a25/ord-0001.bin


More information about the Libraries mailing list