ajhc-0.8.0.8: Haskell compiler that produce binary through C language

Safe HaskellNone

Util.UniqueMonad

Synopsis

Documentation

data UniqT m a Source

Unique integer generator monad transformer.

type Uniq = UniqT IdentitySource

Unique integer generator monad.

runUniq :: Int -> Uniq a -> (a, Int)Source

Run the bare version of the unique int generator.

runUniqT :: Monad m => UniqT m a -> Int -> m (a, Int)Source

Run the transformer version of the unique int generator.

execUniq1 :: Uniq a -> aSource

Execute the bare unique int generator starting with 1.

execUniq :: Int -> Uniq a -> aSource

Execute the bare unique int generator starting with the suplied number.

execUniqT :: Monad m => Int -> UniqT m a -> m aSource

Execute the transformer version of the unique int generator starting with the suplied number.