GHC 6.6 Data.Tuple incompatibility
John Goerzen
jgoerzen at complete.org
Thu Oct 19 17:27:57 EDT 2006
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
More information about the Libraries
mailing list