hindent-6.0.0: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Applicative

Description

Helper functions to handle Applicatives

Synopsis

Documentation

whenJust :: Applicative m => Maybe a -> (a -> m ()) -> m () Source #

If the first argument is a Just value, this function applies its internal value to the function passed as the second argument. Otherwise, this function returne a 'pure ()'.