[Haskell-cafe] library sort

J. Garrett Morris trevion at gmail.com
Thu Feb 16 11:27:09 EST 2006


Data.List contains

sort :: Ord a => [a] -> [a]

and

sortBy :: (a -> a -> Ordering) -> [a] -> [a]

I believe they're currently implemented using merge sort, at least in GHC.

 /g

On 2/16/06, Radu Grigore <radugrigore at gmail.com> wrote:
> Is there a sort function in the libraries that come with GHC (6.4)? My search at
>   http://www.haskell.org/ghc/docs/latest/html/libraries/index.html
> has failed, but I can't believe there is none.
>
> --
> regards,
>   radu
> http://rgrig.blogspot.com/
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>


--
We have lingered in the chambers of the sea	
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.


More information about the Haskell-Cafe mailing list