Run 'doctest' via 'cabal repl'

This commit is contained in:
Alexander Kobjolke 2023-12-03 00:53:06 +01:00
parent a891996352
commit ba418a6ded

View file

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