Permalink
Browse files

Add a doctest suite which does nothing at the moment.

  • Loading branch information...
1 parent 5f5c324 commit 060e874c3026d01bc5239603ac7cc9748d0f89ac @orlitzky orlitzky committed Sep 12, 2013
Showing with 39 additions and 0 deletions.
  1. +11 −0 Doctests.hs
  2. +28 −0 dns.cabal
View
@@ -0,0 +1,11 @@
+module Main
+where
+
+import Test.DocTest
+import System.FilePath.Find ((==?), always, extension, find)
+
+find_sources :: IO [FilePath]
+find_sources = find always (extension ==? ".hs") "Network"
+
+main :: IO ()
+main = find_sources >>= doctest
View
@@ -86,6 +86,34 @@ Test-Suite spec
, network-conduit
, random
+-- The only dependencies we need to /build/ the doctest suite are
+-- base, doctest, and filemanip. If you want to be able to /run/ them,
+-- however, you're going to need the rest of the deps that might be
+-- used in the examples.
+Test-Suite doctests
+ Type: exitcode-stdio-1.0
+ Default-Language: Haskell2010
+ Hs-Source-Dirs: .
+ Ghc-Options: -Wall
+ Main-Is: Doctests.hs
+ Build-Depends: base
+ , attoparsec
+ , attoparsec-conduit
+ , binary
+ , blaze-builder
+ , bytestring
+ , conduit >= 0.5
+ , containers
+ , dns
+ , doctest >= 0.9
+ , filemanip == 0.3.*
+ , hspec
+ , iproute >= 1.2.4
+ , mtl
+ , network >= 2.3
+ , network-conduit
+ , random
+
Source-Repository head
Type: git
Location: git://github.com/kazu-yamamoto/dns.git

0 comments on commit 060e874

Please sign in to comment.