Skip to content

Commit

Permalink
Run doctests for co-log-core (#54)
Browse files Browse the repository at this point in the history
* Run doctests for co-log-core

Fixes #47.

* Allow time 1.8

* Enable InstanceSigs for doctest

* Fix formatting

* Fix typo
  • Loading branch information
tfausak authored and chshersh committed Oct 6, 2018
1 parent 027f8a5 commit 028152b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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
8 changes: 8 additions & 0 deletions co-log-core/tests/doctest.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Main
( main
) where

import Test.DocTest (doctest)

main :: IO ()
main = doctest ["-XInstanceSigs", "src"]
2 changes: 1 addition & 1 deletion co-log/co-log.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ library
, relude ^>= 0.3.0
, stm >= 2.4 && < 2.6
, text ^>= 1.2.3
, time ^>= 1.9.2
, time >= 1.8 && < 1.10
, transformers ^>= 0.5
, typerep-map ^>= 0.3.0

Expand Down

0 comments on commit 028152b

Please sign in to comment.