YhcSource codeContentsIndex
Yhc.Core.UniqueId
Description

This module implements unique ID's in Yhc.Core.

The intention is that a program can use this interface to a unique ID quite cheaply. Or an existing state monad can be reused.

Documentation
class UniqueId a where
Methods
getId :: a -> Int
putId :: Int -> a -> a
show/hide Instances
class Monad m => UniqueIdM m where
Methods
getIdM :: m Int
putIdM :: Int -> m ()
show/hide Instances
UniqueId a => UniqueIdM (State a)
nextId :: UniqueIdM m => m Int
Produced by Haddock version 0.8