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