-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Utilities used by other packages. -- -- An ill-defined collection of simple unrelated utilities used by other -- packages from http://functionalley.eu @package toolshed @version 0.12.0.0 -- | -- -- -- -- module ToolShed.Unsafe -- | A transparent print-function, for use in debugging. print' :: Show s => s -> s -- | A transparent print-function, which prepends the specified label, for -- use in debugging. printShow :: Show s => String -> s -> s -- | module ToolShed.TimePure -- | getCPUSeconds :: (Fractional seconds, NFData expression) => expression -> IO (seconds, expression) -- | printCPUSeconds :: NFData expression => expression -> IO expression -- | module ToolShed.TimeAction -- | Time the specified IO-action, returning the seconds and result as a -- Pair. getCPUSeconds :: Fractional seconds => IO result -> IO (seconds, result) -- | Print the time required by the specified IO-action. printCPUSeconds :: IO result -> IO result -- | module ToolShed.SelfValidate -- | The interface to which data which can self-validate should conform. class SelfValidator a isValid :: SelfValidator a => a -> Bool instance SelfValidator a => SelfValidator [a] -- | module ToolShed.Pair -- | Apply the same transformation to both halves of a Pair. mirror :: (a -> b) -> (a, a) -> (b, b) -- | True if both halves of the Pair are. both :: (Bool, Bool) -> Bool -- | True if neither half of the Pair is. neither :: (Bool, Bool) -> Bool -- | module ToolShed.ListPlus -- | The length of the chunks into which a list is split. type ChunkLength = Int -- | chunk :: ChunkLength -> [a] -> [[a]] -- | Remove the single indexed element from the list. excise :: Int -> [a] -> [a] -- | groupComparing :: Eq b => (a -> b) -> [a] -> [[a]] -- | Converts a list of Pairs, into a narrower list. linearise :: [(a, a)] -> [a] -- | merge :: Ord a => [a] -> [a] -> [a] -- | mergeBy :: Ord a => (a -> a -> Ordering) -> [a] -> [a] -> [a] -- | splitsLeftFrom :: Int -> [a] -> [Split a] -- | splitsRightFrom :: Int -> [a] -> [Split a] -- | takeUntil :: (a -> Bool) -> [a] -> [a] -- | module ToolShed.Defaultable -- | An interface to which data which have a default-value can adhere. class Defaultable a defaultValue :: Defaultable a => a -- | module ToolShed.Options -- | Similar to the class Text.Regex.Base.RegexLike.RegexOptions. class Defaultable a => Options a blankValue :: Options a => a