1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

📝 Fresh.

This commit is contained in:
Rob Rix 2017-12-21 10:53:08 -05:00
parent a400be517f
commit 32215499f0

View File

@ -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