
16 Feb
2007
16 Feb
'07
5:39 p.m.
On 2/16/07, Dmitri O.Kondratiev
where then declaration:
instance Ord []
can be found?
With Hugs, it can be found in /usr/lib/hugs/libraries/Hugs/Prelude.hs (on Debian anyway). For GHC, I guess it's in compiled into one of the .hi files? From Hugs' Prelude.hs: instance Ord a => Ord [a] where compare [] (_:_) = LT compare [] [] = EQ compare (_:_) [] = GT compare (x:xs) (y:ys) = primCompAux x y (compare xs ys) Aaron