
19 Oct
2006
19 Oct
'06
5:27 p.m.
On Thu, Oct 19, 2006 at 05:21:47PM -0400, Cale Gibbard wrote:
Why are you not using a proper type?
Define data Command = Cmd String (CommandHandler, (String, String)) and there will be no problem making that an instance of Eq and Ord in the way you described.
Because Data.List.lookup worked easier with a tuple. I know that I can do this, and in fact already checked in such a thing to my darcs repo, but this is a regression from GHC 6.4. -- John