add doctest.
This commit is contained in:
parent
4426f7fd0f
commit
6bbe9e5df9
@ -87,6 +87,15 @@ Executable ghc-mod
|
|||||||
, ghc
|
, ghc
|
||||||
, ghc-mod
|
, ghc-mod
|
||||||
|
|
||||||
|
Test-Suite doctest
|
||||||
|
Type: exitcode-stdio-1.0
|
||||||
|
Default-Language: Haskell2010
|
||||||
|
HS-Source-Dirs: test
|
||||||
|
Ghc-Options: -threaded -Wall
|
||||||
|
Main-Is: doctests.hs
|
||||||
|
Build-Depends: base
|
||||||
|
, doctest >= 0.9.3
|
||||||
|
|
||||||
Test-Suite spec
|
Test-Suite spec
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
Main-Is: Spec.hs
|
Main-Is: Spec.hs
|
||||||
|
10
test/doctests.hs
Normal file
10
test/doctests.hs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
module Main where
|
||||||
|
|
||||||
|
import Test.DocTest
|
||||||
|
|
||||||
|
main :: IO ()
|
||||||
|
main = doctest [
|
||||||
|
"-package"
|
||||||
|
, "ghc"
|
||||||
|
, "Language/Haskell/GhcMod.hs"
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user