Made the tests compile again

This commit is contained in:
Neil Brown 2009-04-17 18:50:02 +00:00
parent 9141a21693
commit 1df50519a9
2 changed files with 6 additions and 5 deletions

View File

@ -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)

View File

@ -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)