BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Common.Utils

Synopsis

Documentation

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.

when :: Monoid m => Bool -> m -> m Source #

Generalization of when.

prPrec :: Int -> Int -> Doc () -> Doc () Source #

replace Source #

Arguments

:: (Eq a, Functor f) 
=> a

Value to replace

-> a

Value to replace it with

-> f a 
-> f a 

Replace all occurences of a value by another value