1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

📝 analyzeTerm.

This commit is contained in:
Rob Rix 2018-03-06 16:43:23 -05:00
parent e0e1dc2e67
commit 76c69dce45

View File

@ -7,6 +7,7 @@ import Prologue
--
-- This typeclass is left intentionally unconstrained to avoid circular dependencies between it and other typeclasses.
class Monad m => MonadAnalysis term value m | m -> term, m -> value where
-- | Analyze a term using the semantics of the current analysis. This should generally only be called by definitions of 'evaluateTerm' and 'analyzeTerm' in this or other instances.
analyzeTerm :: SubtermAlgebra (Base term) term (m value)
-- | Evaluate a term to a value using the semantics of the current analysis.