-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Use tasty framework to test whether a program executes correctly -- @package tasty-program @version 1.0.2 -- | This module provides a function that tests whether a program can be -- run successfully. For example if you have 'foo.hs' source file: -- --
-- module Foo where -- -- foo :: Int -- foo = 5 ---- -- you can test whether GHC can compile it: -- --
-- module Main ( -- main -- ) where -- -- import Test.Tasty -- import Test.Tasty.Program -- -- main :: IO () -- main = defaultMain $ testGroup "Compilation with GHC" $ [ -- testProgram "Foo" "ghc" ["-fforce-recomp", "foo.hs"] Nothing -- ] ---- -- Program's output and error streams are ignored. module Test.Tasty.Program -- | Create test that runs a program with given options. Test succeeds if -- program terminates successfully. testProgram :: TestName -> String -> [String] -> Maybe FilePath -> TestTree data CatchStderr instance Typeable TestProgram instance Typeable CatchStderr instance Show CatchStderr instance IsOption CatchStderr instance IsTest TestProgram