From 7fdcbebf4960ab8801e56fe610f698407fc47e2b Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 15 Mar 2023 09:51:40 +0900 Subject: [PATCH] using doctest on CI --- Data/IP/RouteTable/Internal.hs | 3 +++ iproute.cabal | 13 ------------- test/doctests.hs | 11 ----------- 3 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 test/doctests.hs diff --git a/Data/IP/RouteTable/Internal.hs b/Data/IP/RouteTable/Internal.hs index 106a62a..dbb7924 100644 --- a/Data/IP/RouteTable/Internal.hs +++ b/Data/IP/RouteTable/Internal.hs @@ -27,6 +27,9 @@ import Data.Word import GHC.Generics (Generic, Generic1) import Prelude hiding (lookup) +-- $setup +-- >>> :set -XOverloadedStrings + ---------------------------------------------------------------- {-| diff --git a/iproute.cabal b/iproute.cabal index e97d9bd..2e52b27 100644 --- a/iproute.cabal +++ b/iproute.cabal @@ -45,19 +45,6 @@ Library if impl(ghc >= 8) Default-Extensions: Strict StrictData -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 >= 4.6 && < 5 - , doctest >= 0.9.3 - , appar - , byteorder - , bytestring - , network - Test-Suite spec Type: exitcode-stdio-1.0 Default-Language: Haskell2010 diff --git a/test/doctests.hs b/test/doctests.hs deleted file mode 100644 index 303ef6a..0000000 --- a/test/doctests.hs +++ /dev/null @@ -1,11 +0,0 @@ -module Main where - -import Test.DocTest - -main :: IO () -main = doctest [ "-XOverloadedStrings" - , "-package=appar" - , "-package=byteorder" - , "-package=network" - , "Data/IP.hs" - , "Data/IP/RouteTable.hs"]