Safe Haskell | None |
---|---|
Language | Haskell2010 |
Different utilities
Synopsis
- dropLowerOptions :: Options
- dropEnd :: Int -> [x] -> [x]
- addLocalTime :: Integral n => n -> LocalTime -> LocalTime
- fromJustM :: Monad m => m b -> m (Maybe b) -> m b
- parseColour :: forall s a. (ToString s, Floating a, Ord a) => s -> Maybe (Colour a)
- hashColour :: Hashable a => Int -> a -> Colour Double
- (??~) :: ASetter s s a b -> Maybe b -> s -> s
- timeF :: NominalDiffTime -> Text
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).
addLocalTime :: Integral n => n -> LocalTime -> LocalTime Source #
Same as addUTCTime
, but for local
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.
timeF :: NominalDiffTime -> Text Source #
Time formatter in form HH:MM