-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,4 @@ | ||
{-# LANGUAGE CPP #-} | ||
{-# OPTIONS_GHC -Wall #-} | ||
module Main (main) where | ||
|
||
#ifndef MIN_VERSION_cabal_doctest | ||
#define MIN_VERSION_cabal_doctest(x,y,z) 0 | ||
#endif | ||
|
||
#if MIN_VERSION_cabal_doctest(1,0,0) | ||
|
||
import Distribution.Extra.Doctest ( defaultMainWithDoctests ) | ||
main :: IO () | ||
main = defaultMainWithDoctests "doctests" | ||
|
||
#else | ||
|
||
#ifdef MIN_VERSION_Cabal | ||
-- If the macro is defined, we have new cabal-install, | ||
-- but for some reason we don't have cabal-doctest in package-db | ||
-- | ||
-- Probably we are running cabal sdist, when otherwise using new-build | ||
-- workflow | ||
#warning You are configuring this package without cabal-doctest installed. \ | ||
The doctests test-suite will not work as a result. \ | ||
To fix this, install cabal-doctest before configuring. | ||
#endif | ||
|
||
import Distribution.Simple | ||
|
||
main :: IO () | ||
main = defaultMain | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ author: Alexey Kuleshevich | |
maintainer: [email protected] | ||
copyright: 2018-2020 Alexey Kuleshevich | ||
category: Data, Data Structures, Parallelism | ||
build-type: Custom | ||
build-type: Simple | ||
extra-source-files: README.md | ||
, CHANGELOG.md | ||
cabal-version: >=1.10 | ||
|
@@ -26,12 +26,6 @@ flag unsafe-checks | |
default: False | ||
manual: True | ||
|
||
custom-setup | ||
setup-depends: | ||
base | ||
, Cabal | ||
, cabal-doctest >=1.0.6 | ||
|
||
library | ||
hs-source-dirs: src | ||
exposed-modules: Data.Massiv.Array | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
module Main where | ||
|
||
import Build_doctests (flags, pkgs, module_sources) | ||
import Data.Foldable (traverse_) | ||
import Test.DocTest (doctest) | ||
|
||
main :: IO () | ||
main = do | ||
traverse_ putStrLn args | ||
doctest args | ||
where | ||
args = flags ++ pkgs ++ module_sources | ||
main = doctest ["src"] |