forked from digitallyinduced/ihp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-haddock
executable file
·47 lines (43 loc) · 1.65 KB
/
build-haddock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /usr/bin/env nix-shell
#! nix-shell -i bash
# Builds the api documentation for all IHP modules
# Output is placed in directory haddock-build
# After building, you can view the api docs with: open haddock-build/index.html
mkdir -p haddock-build
haddock --html --hyperlinked-source --built-in-themes --quickjump -o haddock-build \
$(find IHP -regex '.+\.hs' -not \( -regex '.+GenericController.hs' \) -not \( -regex '.+CLI/.+.hs' \) | xargs) \
--optghc="-i." \
--optghc="-XOverloadedStrings" \
--optghc="-XNoImplicitPrelude" \
--optghc="-XImplicitParams" \
--optghc="-XRank2Types" \
--optghc="-XDisambiguateRecordFields" \
--optghc="-XNamedFieldPuns" \
--optghc="-XDuplicateRecordFields" \
--optghc="-XOverloadedLabels" \
--optghc="-XFlexibleContexts" \
--optghc="-XTypeSynonymInstances" \
--optghc="-XFlexibleInstances" \
--optghc="-XQuasiQuotes" \
--optghc="-XTypeFamilies" \
--optghc="-XPackageImports" \
--optghc="-XScopedTypeVariables" \
--optghc="-XRecordWildCards" \
--optghc="-XTypeApplications" \
--optghc="-XDataKinds" \
--optghc="-XDeriveGeneric" \
--optghc="-XMultiParamTypeClasses" \
--optghc="-XTypeOperators" \
--optghc="-XDeriveDataTypeable" \
--optghc="-XMultiWayIf" \
--optghc="-XUndecidableInstances" \
--optghc="-XBlockArguments" \
--optghc="-XPartialTypeSignatures" \
--optghc="-XLambdaCase" \
--optghc="-XBangPatterns" \
--optghc="-XInstanceSigs" \
--optghc="-XFunctionalDependencies" \
--optghc="-package typerep-map" \
--optghc="-XDefaultSignatures" \
--optghc="-XStandaloneDeriving" \
--optghc="-package-env -"