mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Define an eliminator for SomeAnalysis.
This commit is contained in:
parent
b818e15808
commit
f82aa2c687
@ -5,6 +5,7 @@ module Control.Abstract.Analysis
|
||||
, liftAnalyze
|
||||
, runAnalysis
|
||||
, SomeAnalysis(..)
|
||||
, runSomeAnalysis
|
||||
, module X
|
||||
, Subterm(..)
|
||||
, SubtermAlgebra
|
||||
@ -74,3 +75,6 @@ data SomeAnalysis m result where
|
||||
)
|
||||
=> m effects a
|
||||
-> SomeAnalysis m (Final effects a)
|
||||
|
||||
runSomeAnalysis :: SomeAnalysis m result -> result
|
||||
runSomeAnalysis (SomeAnalysis a) = X.run a
|
||||
|
Loading…
Reference in New Issue
Block a user