on master help sign in
effectful/doctest.sh
41 lines 819 B history raw
1#!/bin/sh
2#
3# For this to work you need to:
4#
5# - Put "write-ghc-environment-files: always" in your cabal.project.local.
6#
7# - Compile doctest with the same GHC version the project currently uses.
8#
10set -eu
12run_doctest() {
13 pushd "${1}"
14 doctest \
15 "${2}" \
16 -XBangPatterns \
17 -XConstraintKinds \
18 -XDataKinds \
19 -XDeriveFunctor \
20 -XDeriveGeneric \
21 -XFlexibleContexts \
22 -XFlexibleInstances \
23 -XGADTs \
24 -XGeneralizedNewtypeDeriving \
25 -XLambdaCase \
26 -XMultiParamTypeClasses \
27 -XNoStarIsType \
28 -XRankNTypes \
29 -XRecordWildCards \
30 -XRoleAnnotations \
31 -XScopedTypeVariables \
32 -XStandaloneDeriving \
33 -XTupleSections \
34 -XTypeApplications \
35 -XTypeFamilies \
36 -XTypeOperators
37 popd
40run_doctest effectful-core src
41run_doctest effectful src