1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00

📝 MonadAnalysis.

This commit is contained in:
Rob Rix 2018-03-02 10:21:10 -05:00
parent 57eb8648ba
commit 59afa36269

View File

@ -1,6 +1,9 @@
{-# LANGUAGE FunctionalDependencies #-}
module Control.Abstract.Analysis where
-- | A 'Monad' in which one can evaluate some specific term type to some specific value type.
--
-- 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
evaluateTerm :: term
-> m value