mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
Merge pull request #1522 from github/haddock-fixes-mk2
Further fixes for Haddock syntax.
This commit is contained in:
commit
7e22cf8f69
@ -8,8 +8,10 @@ type TName = Int
|
|||||||
|
|
||||||
-- | An effect offering a (resettable) sequence of always-incrementing, and therefore “fresh,” type variables.
|
-- | 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 () -- ^ Request a reset of the sequence of variable names.
|
-- | Request a reset of the sequence of variable names.
|
||||||
Fresh :: Fresh TName -- ^ Request a fresh variable name.
|
Reset :: TName -> Fresh ()
|
||||||
|
-- | Request a fresh variable name.
|
||||||
|
Fresh :: Fresh TName
|
||||||
|
|
||||||
-- | 'Monad's offering a (resettable) sequence of guaranteed-fresh type variables.
|
-- | 'Monad's offering a (resettable) sequence of guaranteed-fresh type variables.
|
||||||
class Monad m => MonadFresh m where
|
class Monad m => MonadFresh m where
|
||||||
|
Loading…
Reference in New Issue
Block a user