hexirp / doctest-driver-gen Goto Github PK
View Code? Open in Web Editor NEWGenerate driver file for doctest's cabal integration.
License: BSD 3-Clause "New" or "Revised" License
Generate driver file for doctest's cabal integration.
License: BSD 3-Clause "New" or "Revised" License
It is difficult.
Therefore, I may need to use an if statement. Since build-tools exists as an older version, I might be able to use it.
Building on GHC 9.2 works if base
is bumped
$ cabal install doctest-driver-gen --allow-newer=doctest-driver-gen:base
Resolving dependencies...
Build profile: -w ghc-9.2.1 -O1
In order, the following will be built (use -v for more details):
- doctest-driver-gen-0.3.0.4 (lib) (requires download & build)
- doctest-driver-gen-0.3.0.4 (exe:doctest-driver-gen) (requires download & build)
But the testsuite is blocked on doctest
:
Is doctest-driver-gen
useable with GHC 7?
$ cabal test -w ghc-7.10.3
...
Build profile: -w ghc-7.10.3 -O1
In order, the following will be built (use -v for more details):
- doctest-driver-gen-0.3.0.5 (test:doctest-driver-gen-test) (first run)
...
Building test suite 'doctest-driver-gen-test' for doctest-driver-gen-0.3.0.5..
...
Test suite doctest-driver-gen-test: RUNNING...
/var/folders/lg/qcd3v89j59l3m6520kr42bdm0000gn/T/ghc24798_0/ghc_1.hspp:2:8:
Could not find module ‘Test.DocTest’
There are files missing in the ‘doctest-0.16.0.1@2dI5NUsDb1iKZ4RIj2rNrH’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
Test suite doctest-driver-gen-test: FAIL
The complaint about doctest-0.16.0.1
is unexpected, since doctest-0.20
was used in the build:
$ cabal-plan
...
Direct deps
~~~~~~~~~~~
PkgId (PkgName "doctest-driver-gen") (Ver [0,3,0,5])
CompNameLib
base-4.8.2.0
PkgId (PkgName "doctest-driver-gen") (Ver [0,3,0,5])
CompNameExe "doctest-driver-gen"
base-4.8.2.0
doctest-driver-gen-0.3.0.5
PkgId (PkgName "doctest-driver-gen") (Ver [0,3,0,5])
CompNameTest "doctest-driver-gen-test"
base-4.8.2.0
doctest-0.20.0
UPDATE: In a pristine env, the error is also Could not find module ‘Test.DocTest’
, but with out references to stale packages: https://github.com/andreasabel/doctest-driver-gen/runs/5175130922?check_suite_focus=true#step:20:37
Out of the box, it seems to work with GHC >= 8 but not with < 8: https://github.com/andreasabel/doctest-driver-gen/runs/5175130998?check_suite_focus=true
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.