mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
📝 loop.
This commit is contained in:
parent
2eec625fbb
commit
a85fe18d20
@ -67,6 +67,9 @@ class (MonadAnalysis term value m, Show value) => MonadValue term value m where
|
||||
-- | Evaluate an application (like a function call).
|
||||
apply :: value -> [m value] -> m value
|
||||
|
||||
-- | Primitive looping combinator, approximately equivalent to 'fix'. This should be used in place of direct recursion, as it allows abstraction over recursion.
|
||||
--
|
||||
-- The function argument takes an action which recurs through the loop.
|
||||
loop :: (m value -> m value) -> m value
|
||||
|
||||
-- | Attempt to extract a 'Prelude.Bool' from a given value.
|
||||
|
Loading…
Reference in New Issue
Block a user