mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +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
|
, liftAnalyze
|
||||||
, runAnalysis
|
, runAnalysis
|
||||||
, SomeAnalysis(..)
|
, SomeAnalysis(..)
|
||||||
|
, runSomeAnalysis
|
||||||
, module X
|
, module X
|
||||||
, Subterm(..)
|
, Subterm(..)
|
||||||
, SubtermAlgebra
|
, SubtermAlgebra
|
||||||
@ -74,3 +75,6 @@ data SomeAnalysis m result where
|
|||||||
)
|
)
|
||||||
=> m effects a
|
=> m effects a
|
||||||
-> SomeAnalysis m (Final 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