packages feed

papa-0.7.0: test/Doctest.hs

{-# OPTIONS_GHC -Wall #-}

-- | Run the doctests of the library: the examples and the Hedgehog
-- properties in its Haddock comments.
module Main (
  main,
) where

import System.Exit (exitWith)
import System.Process (rawSystem)

main :: IO ()
main =
  exitWith
    =<< rawSystem
      "cabal"
      [ "repl"
      , "--with-compiler=doctest"
      , "--build-depends=hedgehog"
      , "--build-depends=hedgehog-fn"
      , "--build-depends=transformers"
      , "--build-depends=directory"
      , "--repl-options=-w"
      , "--repl-options=-Wdefault"
      , "lib:papa"
      ]