Portability | portable |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | None |
A globally unique fresh identifier supply with local pooling and replay support.
Documentation
A user managed globally unique variable supply.
Variables
Grab a new supply. Any two supplies obtained with newSupply are guaranteed to return disjoint sets of identifiers. Replaying the same sequence of operations on the same Supply will yield the same results.
splitSupply :: Supply -> (Supply, Supply)Source
Split a supply into two supplies that will return disjoint identifiers
Unboxed API
splitSupply# :: Supply -> (#Supply, Supply#)Source
An unboxed version of splitSupply