Run 'doctest' via 'cabal repl'
This commit is contained in:
parent
a891996352
commit
ba418a6ded
1 changed files with 4 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
|||
-- | Rn the doctest executable
|
||||
-- | Run the doctest executable
|
||||
module Main (main) where
|
||||
|
||||
import System.Process (callProcess)
|
||||
|
||||
doctest :: [String] -> IO ()
|
||||
doctest = callProcess "doctest"
|
||||
doctest :: IO ()
|
||||
doctest = callProcess "cabal" ["repl", "--with-ghc=doctest"]
|
||||
|
||||
main :: IO ()
|
||||
main = doctest ["--fast", "src"]
|
||||
main = doctest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue