Graphics.Rendering.Chart.Utils
Description
Non chart specific utility functions.
isValidNumber :: RealFloat a => a -> Bool Source #
Checks if the given value is and actual numeric value and not a concept like NaN or infinity.
log10 :: Floating a => a -> a Source #
Shorthand for the decimal logarithm
maybeM :: Monad m => b -> (a -> m b) -> Maybe a -> m b Source #
Version of maybe that returns a monadic value.
maybe
whenJust :: Monad m => Maybe a -> (a -> m ()) -> m () Source #
Specialization to ()