Made the tests compile again
This commit is contained in:
parent
9141a21693
commit
1df50519a9
|
@ -17,7 +17,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
-}
|
||||
|
||||
-- | The occam-specific frontend passes.
|
||||
module OccamPasses (occamPasses, foldConstants, checkConstants) where
|
||||
module OccamPasses (occamPasses, foldConstants, checkConstants, CheckConstantsOps) where
|
||||
-- The ops are exported to make testing easier
|
||||
|
||||
import Control.Monad.State
|
||||
import Data.Generics (Data)
|
||||
|
|
|
@ -140,15 +140,15 @@ testCheckConstants = TestList
|
|||
, testFail 33 (A.Option m [lit10, lit10, lit10, var] skip)
|
||||
]
|
||||
where
|
||||
testOK :: (PolyplateM a (TwoOpM PassM A.Type A.Option) () PassM
|
||||
,PolyplateM a () (TwoOpM PassM A.Type A.Option) PassM
|
||||
testOK :: (PolyplateM a OccamPasses.CheckConstantsOps () PassM
|
||||
,PolyplateM a () OccamPasses.CheckConstantsOps PassM
|
||||
,Show a, Data a) => Int -> a -> Test
|
||||
testOK n orig
|
||||
= TestCase $ testPass ("testCheckConstants" ++ show n)
|
||||
orig OccamPasses.checkConstants orig
|
||||
(return ())
|
||||
testFail :: (PolyplateM a (TwoOpM PassM A.Type A.Option) () PassM
|
||||
,PolyplateM a () (TwoOpM PassM A.Type A.Option) PassM
|
||||
testFail :: (PolyplateM a OccamPasses.CheckConstantsOps () PassM
|
||||
,PolyplateM a () OccamPasses.CheckConstantsOps PassM
|
||||
,Show a, Data a) => Int -> a -> Test
|
||||
testFail n orig
|
||||
= TestCase $ testPassShouldFail ("testCheckConstants" ++ show n)
|
||||
|
|
Loading…
Reference in New Issue
Block a user