BNFC.Backend.Common.Utils
type ModuleName = String Source #
The name of a module, e.g. Foo.Abs, Foo.Print etc.
unless :: Monoid m => Bool -> m -> m Source #
Generalization of unless.
unless
when :: Monoid m => Bool -> m -> m Source #
Generalization of when.
when
prPrec :: Int -> Int -> Doc () -> Doc () Source #
docToString :: LayoutOptions -> Doc () -> String Source #
replace Source #
Arguments
Value to replace
Value to replace it with
Replace all occurences of a value by another value