evoke-0.2022.8.26: A GHC plugin to derive instances.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Evoke.Generator.Common

Synopsis

Documentation

applyAll :: Monad m => [a -> m a] -> a -> m a Source #

Applies all the monadic functions in order beginning with some starting value.

makeRandomModule :: ModuleName -> Hsc ModuleName Source #

Makes a random module name. This will convert any periods to underscores and add a unique suffix.

>>> makeRandomModule "Data.Aeson"
"Data_Aeson_1"

makeRandomVariable :: SrcSpan -> String -> Hsc (LIdP GhcPs) Source #

Makes a random variable name using the given prefix.