git.iko.soy
/
servant
readme
files
commits
refs
on
master
help
sign in
Doctests for servant-server
3b4b958
Julian K. Arni
11 years ago
servant-server/servant-server.cabal
+11
compare with master
unified
split
@@ -108,3 +108,14 @@ test-suite spec
108
, wai
108
, wai
109
, wai-extra
109
, wai-extra
110
, warp
110
, warp
111
+
112
+
test-suite doctests
113
+
build-depends: base
114
+
, servant
115
+
, doctest
116
+
, filemanip
117
+
type: exitcode-stdio-1.0
118
+
main-is: test/Doctests.hs
119
+
buildable: True
120
+
default-language: Haskell2010
121
+
ghc-options: -threaded
servant-server/test/Doctests.hs
new file
+18
@@ -0,0 +1,18 @@
1
+
module
Main
where
2
+
3
+
import
System.FilePath.Find
4
+
import
Test.DocTest
5
+
6
+
main
::
IO ()
7
+
main =
do
8
+
files <- find always (extension ==?
".hs"
)
"src"
9
+
doctest $ [
"-isrc"
10
+
,
"-optP-include"
11
+
,
"-optPdist/build/autogen/cabal_macros.h"
12
+
,
"-XOverloadedStrings"
13
+
,
"-XFlexibleInstances"
14
+
,
"-XMultiParamTypeClasses"
15
+
,
"-XDataKinds"
16
+
,
"-XTypeOperators"
17
+
] ++ files
18
+
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list