mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
📝 Fresh.
This commit is contained in:
parent
a400be517f
commit
32215499f0
@ -6,6 +6,7 @@ import Control.Monad.Effect.Internal
|
||||
|
||||
type TName = Int
|
||||
|
||||
-- | An effect offering a (resettable) sequence of always-incrementing, and therefore “fresh,” type variables.
|
||||
data Fresh a where
|
||||
Reset :: TName -> Fresh ()
|
||||
Fresh :: Fresh TName
|
||||
|
Loading…
Reference in New Issue
Block a user