1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

📝 loop.

This commit is contained in:
Rob Rix 2018-03-14 15:30:15 -04:00
parent 2eec625fbb
commit a85fe18d20

View File

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