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 \
|
2024-10-06 15:39:43 +03:00
|
|
|
-XDerivingStrategies \
|
2021-07-25 16:18:35 +03:00
|
|
|
-XFlexibleContexts \
|
|
|
|
-XFlexibleInstances \
|
|
|
|
-XGADTs \
|
|
|
|
-XGeneralizedNewtypeDeriving \
|
2024-04-12 21:35:44 +03:00
|
|
|
-XImportQualifiedPost \
|
2024-04-28 22:55:03 +03:00
|
|
|
-XLambdaCase \
|
2021-07-25 16:18:35 +03:00
|
|
|
-XMultiParamTypeClasses \
|
|
|
|
-XNoStarIsType \
|
2024-08-22 21:59:21 +03:00
|
|
|
-XPolyKinds \
|
2021-07-25 16:18:35 +03:00
|
|
|
-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
|