Clean up the way the doctests suite is registered via Cabal.
commitc47690735ec0820ca4486784952cd60f1420d077
authorPeter Simons <simons@cryp.to>
dateMon 15 May 2017, 16:54 (9 years ago)
parentc33d81c
cabal2nix.cabal+3−3
@@ -193,12 +193,12 @@ executable hackage2nix
193193 HackageGit
194194 default-language: Haskell2010
195195
196−test-suite spec
196+test-suite doctests
197197 type: exitcode-stdio-1.0
198− main-is: Main.hs
198+ main-is: doctests.hs
199199 hs-source-dirs:
200200 test
201− ghc-options: -Wall
201+ ghc-options: -Wall -threaded
202202 build-depends:
203203 aeson
204204 , ansi-wl-pprint
package.yaml+5−3
@@ -68,7 +68,7 @@ description: >
6868
6969 > nix-env -i cabal2nix
7070
71−ghc-options: -Wall
71+ghc-options: -Wall
7272
7373extra-source-files:
7474 README.md
@@ -143,9 +143,11 @@ executables:
143143 - -with-rtsopts=-N
144144
145145tests:
146− spec:
147− main: Main.hs
146+ doctests:
147+ main: doctests.hs
148148 source-dirs:
149149 - test
150150 dependencies:
151151 - doctest
152+ ghc-options:
153+ - -threaded
test/Main.hs → test/doctests.hsrenamed+1−1
@@ -3,4 +3,4 @@ module Main ( main ) where
33import Test.DocTest
44
55main :: IO ()
6−main = doctest [ "-isrc", "src" ]
6+main = doctest ["src"]