Skip to content

Commit

Permalink
Run doctests for co-log-core
Browse files Browse the repository at this point in the history
Fixes co-log#47.
  • Loading branch information
tfausak committed Oct 5, 2018
1 parent 1942dc9 commit c65e16c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions co-log-core/co-log-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ library
default-language: Haskell2010
default-extensions: InstanceSigs
other-extensions: CPP

test-suite doctest
build-depends: base, doctest ^>= 0.16.0
default-language: Haskell2010
hs-source-dirs: tests
main-is: doctest.hs
type: exitcode-stdio-1.0
1 change: 1 addition & 0 deletions co-log-core/src/Colog/Core/Action.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE ViewPatterns #-}

{- | Implements core data types and combinators for logging actions.
Expand Down
4 changes: 4 additions & 0 deletions co-log-core/tests/doctest.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Main ( main ) where
import qualified Test.DocTest as Doctest
main :: IO ()
main = Doctest.doctest [ "src" ]

0 comments on commit c65e16c

Please sign in to comment.