Some things about haskell-src

Hello, 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. Some other thing I've thought is using operators as type constructors for some types, such as: (:.) = Qual (:$) = HsApp I don't know how much this is possible for other cases, but I think it could make the look of a parsed code clearer. Greetings. -- marcot Página: http://marcotmarcot.iaaeee.org/ Blog: http://marcotmarcot.blogspot.com/ Correio: marcot@riseup.net XMPP: marcot@jabber.org IRC: marcot@irc.freenode.net Telefone: 25151920 Celular: 98116720 Endereço: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil

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@riseup.net XMPP: marcot@jabber.org IRC: marcot@irc.freenode.net Telefone: 25151920 Celular: 98116720 Endereço: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil
participants (1)
-
Marco Túlio Gontijo e Silva