can't find sequence?

Ross Paterson
Wed, 30 Oct 2002 10:06:48 +0000

On Wed, Oct 30, 2002 at 11:04:41AM +1100, Andrew J Bromage wrote:
> G'day all.
> On Tue, Oct 29, 2002 at 11:40:40AM +0000, Alastair Reid wrote:
> > > In particular, Hugs is not currently a Supported Platform(tm).
> > 
> > Please let us know if there's anything in the forthcoming release
> > that needs changed to support this library.
> There probably won't be any problems apart from unportable code and/or
> unportable build systems on my part, but I'll try to give it a go
> anyway.

The library needs updating to account for change in Haskell 98: method
definitions in instance declarations are no longer qualified, e.g.

instance Ord k  => A.Assoc (FM k) [k] where
  {A.toSeq = toSeq; A.keys = keys; A.mapWithKey = mapWithKey; 
   A.foldWithKey = foldWithKey; A.filterWithKey = filterWithKey; 
   A.partitionWithKey = partitionWithKey}

should now be

instance Ord k  => A.Assoc (FM k) [k] where
  {toSeq = toSeq; keys = keys; mapWithKey = mapWithKey; 
   foldWithKey = foldWithKey; filterWithKey = filterWithKey; 
   partitionWithKey = partitionWithKey}

(The version in hslibs already has this change.)

The library itself isn't hierarchically organized, but with the above
change, and the Hugs bugfix Sigbjorn did yesterday, it works with the
new hugs +N