3BASE_DEPENDS="base haskell98 parsec"
5GHC64_DEPENDS=${GHC64_DEPENDS}
6GHC66_DEPENDS=${GHC66_DEPENDS-"regex-compat html"}
7HCFLAGS=${HCFLAGS-"-O0"}
10while [ -n "$1" ] && [ "$1" != 'version' ]; do
16BUILD_DEPENDS="${BASE_DEPENDS}"
19 BUILD_DEPENDS="${BUILD_DEPENDS} ${GHC64_DEPENDS}"
22 BUILD_DEPENDS="${BUILD_DEPENDS} ${GHC66_DEPENDS}"
25 echo >&2 "WARNING: Unsupported GHC version '$ghc_version'; proceeding anyway"
29BUILD_DEPENDS=$(echo $BUILD_DEPENDS | sed -e 's# #, #g')
31# Handle 'Hs-Source-Dir' option name which was deprecated in Cabal > 1.1.3.
32HS_SOURCE_DIRS='Hs-Source-Dirs'
33cabal_version=$(ghc-pkg -l | sed -ne 's/.*\<[Cc]abal-\([^,]*\).*/\1/p')
34if printf "$cabal_version\n1.1.3" | sort | tail -n 1 | grep -q '1\.1\.3'; then
35 HS_SOURCE_DIRS='Hs-Source-Dir'
38sed -e "s#@HCFLAGS@#$HCFLAGS#g" \
39 -e "s#@BUILD_DEPENDS@#$BUILD_DEPENDS#g" \
40 -e "s#@HS_SOURCE_DIRS@#$HS_SOURCE_DIRS#g"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list