2021-07-08 19:45:09 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# For this to work you need to:
|
|
|
|
#
|
|
|
|
# - Put "write-ghc-environment-files: always" in your cabal.project.local.
|
|
|
|
#
|
|
|
|
# - Compile doctest with the same GHC version the project currently uses.
|
|
|
|
#
|
|
|
|
|
2021-07-25 16:18:35 +03:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
run_doctest() {
|
|
|
|
pushd "${1}"
|
|
|
|
doctest \
|
|
|
|
"${2}" \
|
2022-01-07 22:28:19 +03:00
|
|
|
-XHaskell2010 \
|
2021-07-25 16:18:35 +03:00
|
|
|
-XBangPatterns \
|
|
|
|
-XConstraintKinds \
|
|
|
|
-XDataKinds \
|
|
|
|
-XDeriveFunctor \
|
2021-12-16 20:44:03 +03:00
|
|
|
-XDeriveGeneric \
|
2021-07-25 16:18:35 +03:00
|
|
|
-XFlexibleContexts \
|
|
|
|
-XFlexibleInstances \
|
|
|
|
-XGADTs \
|
|
|
|
-XGeneralizedNewtypeDeriving \
|
|
|
|
-XLambdaCase \
|
|
|
|
-XMultiParamTypeClasses \
|
|
|
|
-XNoStarIsType \
|
|
|
|
-XRankNTypes \
|
|
|
|
-XRecordWildCards \
|
|
|
|
-XRoleAnnotations \
|
|
|
|
-XScopedTypeVariables \
|
|
|
|
-XStandaloneDeriving \
|
|
|
|
-XTupleSections \
|
|
|
|
-XTypeApplications \
|
|
|
|
-XTypeFamilies \
|
|
|
|
-XTypeOperators
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
|
|
|
run_doctest effectful-core src
|
2022-02-22 23:39:14 +03:00
|
|
|
run_doctest effectful-th src
|
2021-12-16 20:44:03 +03:00
|
|
|
run_doctest effectful src
|