yhccore-0.9: Yhc's Internal Core language.

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 whereSource

Methods

getId :: a -> IntSource

putId :: Int -> a -> aSource

Instances

class Monad m => UniqueIdM m whereSource

Methods

getIdM :: m IntSource

putIdM :: Int -> m ()Source

Instances