-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Heapsort of MArrays as a demo of imperative programming
--
-- Heapsort of MArrays
@package heapsort
@version 0.1.0
-- | This module provides heapsort for an MArray with indices of
-- Integral type. See any good algorithms text for a description
-- of heapsort. Heapsort is O(n lg n) comparisons and exchanges in the
-- worst case, and is reasonably efficient.
module Data.Array.MArray.Heapsort
-- | Sort the elements of the given MArray in increasing order.
sort :: (Integral i, Ix i, Ord e, MArray a e m) => a i e -> m ()