Portability | ghc |
---|---|
Stability | experimental |
Maintainer | jwlato@gmail.com |
Safe Haskell | None |
Unique Names with fast equality (newtype Int
)
- newtype Name = Name {}
- newNameSupply :: [Name]
- namesStartingFrom :: Int -> [Name]
Documentation
Name is a unique identifier
newNameSupply :: [Name]Source
return an infinite stream of Name
s starting with nameId
0
namesStartingFrom :: Int -> [Name]Source
get the infinite stream of unique names starting from the given integer