This a doc bug on the GHC (and Haskell report) side -
Hugs98's List.minimumBy type is the right one (and also
the type of the *defn* in the Lib Report.)

--sigbjorn

> -----Original Message-----
> From: Keith Wansbrough [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 10:26
> To: [EMAIL PROTECTED]
> Subject: Type of minimumBy
> 
> 
> According to the Haskell 98 report, and GHC, List.minimumBy has type 
> (a->a->Ordering) -> [a] -> a.  But according to Hugs98, 
> September 1999,
> 
> sphere:Novel$ hugs
> __   __ __  __  ____   ___      
> ________________________________________
> _
> ||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 
> standard
> ||___|| ||__|| ||__||  __||     Copyright (c) 1994-1999
> ||---||         ___||           World Wide Web: 
> http://haskell.org/hugs
> ||   ||                         Report bugs to: [EMAIL PROTECTED]
> ||   || Version: September 1999 
> ________________________________________
> _
> 
> Haskell 98 mode: Restart with command line option -98 to enable 
> extensions
> 
> Reading file "/usr/groups/haskell/lib/hugs/lib/Prelude.hs":
>                    
> Hugs session for:
> /usr/groups/haskell/lib/hugs/lib/Prelude.hs
> Type:? for help
> Prelude>:a List
> Reading file "/usr/groups/haskell/lib/hugs/lib/List.hs":
> Reading file "/usr/groups/haskell/lib/hugs/lib/Maybe.hs":
> Reading file "/usr/groups/haskell/lib/hugs/lib/List.hs":
>                    
> Hugs session for:
> /usr/groups/haskell/lib/hugs/lib/Prelude.hs
> /usr/groups/haskell/lib/hugs/lib/Maybe.hs
> /usr/groups/haskell/lib/hugs/lib/List.hs
> List>:t minimumBy
> minimumBy:: (a -> a -> a) -> [a] -> a
> List> 
> 
> 
> --KW 8-)
> -- 
> : Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------:
> : PhD Student, Computer Laboratory, University of Cambridge, UK. :
> : Native of Antipodean Auckland, New Zealand: 174d47'E, 36d55'S. :
> : http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
> :----------------------------------------------------------------:
> 
> 
> 
> 

Reply via email to