orgstat-0.1.5: Statistics visualizer for org-mode

Safe HaskellNone
LanguageHaskell2010

OrgStat.Util

Description

Different utilities

Synopsis

Documentation

dropLowerOptions :: Options Source #

JSON/Yaml TH modifier. Each field of type "aoeuKek" turns into "kek". Placed here because it can't be defined near json TH deriving (ghc restriction).

dropEnd :: Int -> [x] -> [x] Source #

Drops n items from the end.

addLocalTime :: Integral n => n -> LocalTime -> LocalTime Source #

Same as addUTCTime, but for local

fromJustM :: Monad m => m b -> m (Maybe b) -> m b Source #

parseColour :: forall s a. (ToString s, Floating a, Ord a) => s -> Maybe (Colour a) Source #

Parses colour from format '#rrggbb' or just rrggbb

hashColour :: Hashable a => Int -> a -> Colour Double Source #

Generates a colour given salt and anything hashable. Doesn't return too dark or too light colors.

(??~) :: ASetter s s a b -> Maybe b -> s -> s Source #

Maybe setter that does nothing on Nothing.

timeF :: NominalDiffTime -> Text Source #

Time formatter in form HH:MM