bioinformatics-toolkit-0.3.1: A collection of bioinformatics tools

Safe HaskellSafe
LanguageHaskell2010

Bio.Utils.Types

Synopsis

Documentation

data Sorted f a Source #

Instances

Show (f a) => Show (Sorted f a) Source # 

Methods

showsPrec :: Int -> Sorted f a -> ShowS #

show :: Sorted f a -> String #

showList :: [Sorted f a] -> ShowS #

ordering :: ((Foldable f, Ord a) => {..} -> Sorted f a) -> Ordering Source #

fromSorted :: ((Foldable f, Ord a) => {..} -> Sorted f a) -> f a Source #

toSorted :: (Foldable f, Ord a) => f a -> Sorted f a Source #

if the data has been sorted, wrap it into Sorted type

unsafeToSorted :: (Foldable f, Ord a) => Ordering -> f a -> Sorted f a Source #