Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Uniques m a where
- FreshUnique :: Uniques m Unique
- freshUnique :: Has Uniques sig m => m Unique
- newtype UniquesC m a = UniquesC {
- getUniquesState :: StateC UniqSupply m a
- runUniquesIO :: MonadIO m => Char -> UniquesC m a -> m a
- runUniques :: Functor m => UniqSupply -> UniquesC m a -> m a
Documentation
data Uniques m a where Source #
Uniques provides arbitrarily many unique GHC Uniques
FreshUnique :: Uniques m Unique |
freshUnique :: Has Uniques sig m => m Unique Source #
UniquesC | |
|
runUniquesIO :: MonadIO m => Char -> UniquesC m a -> m a Source #
The "mask" (Char) supplied is purely cosmetic, making it easier to figure out where a Unique was born.
See Note [Uniques for wired-in prelude things and known masks] in GHC.Builtin.Uniques
runUniques :: Functor m => UniqSupply -> UniquesC m a -> m a Source #