Doctests for servant-server

This commit is contained in:
Julian K. Arni 2015-05-03 01:27:48 +02:00
parent 1447221a16
commit 3b4b958110
2 changed files with 29 additions and 0 deletions

View File

@ -108,3 +108,14 @@ test-suite spec
, wai
, wai-extra
, warp
test-suite doctests
build-depends: base
, servant
, doctest
, filemanip
type: exitcode-stdio-1.0
main-is: test/Doctests.hs
buildable: True
default-language: Haskell2010
ghc-options: -threaded

View File

@ -0,0 +1,18 @@
module Main where
import System.FilePath.Find
import Test.DocTest
main :: IO ()
main = do
files <- find always (extension ==? ".hs") "src"
doctest $ [ "-isrc"
, "-optP-include"
, "-optPdist/build/autogen/cabal_macros.h"
, "-XOverloadedStrings"
, "-XFlexibleInstances"
, "-XMultiParamTypeClasses"
, "-XDataKinds"
, "-XTypeOperators"
] ++ files