# -----------------------------------------------------------------------------
# generic generated file patterns

Thumbs.db
.DS_Store

*~
*#
#*#
*.bak
*.BAK
*.orig
*.prof
*.rej
*.patch
*.stackdump
foo*

*.hi
*.hi-boot
*.o-boot
*.p_o
*.t_o
*.debug_o
*.thr_o
*.thr_p_o
*.thr_debug_o
*.o
*.a
*.o.cmd
*.depend*
*.dyn_o
*.dyn_hi
__pycache__
*.SYMDEF*

log
tags

autom4te.cache
config.log
config.status
configure

# Temporarily generated configure files
confdefs.h

# Hadrian files
stage0
stage1
stage2
_build
hadrian

# -----------------------------------------------------------------------------
# Ignore any overlapped darcs repos and back up files

*-darcs-backup*
_darcs/

# -----------------------------------------------------------------------------
# sub-repositories

/ghc-tarballs/

# -----------------------------------------------------------------------------
# Cabal dist directories

/driver/ghc/dist/
/driver/haddock/dist/
/driver/ghci/dist/
/driver/split/dist/
/includes/dist-*/
/libffi/dist-install/
/libraries/*/dist-boot/
/libraries/*/dist-install/
/libraries/dist-haddock/
/rts/dist/
/utils/*/dist*/
/compiler/stage1/
/compiler/stage2/
/compiler/stage3/
/ghc/stage1/
/ghc/stage2/
/ghc/stage3/
/iserv/stage2*/
/iserv/dist/

# -----------------------------------------------------------------------------
# specific generated files

/bindist-list
/bindistprep/
/bindisttest/HelloWorld
/bindisttest/
/ch01.html
/ch02.html
/compiler/dist/
/compiler/ghc.cabal
/compiler/ghc.cabal.old
/distrib/configure.ac
/distrib/ghc.iss
/docs/man
/docs/index.html
/docs/users_guide/users_guide
/docs/users_guide/ghc.1
/docs/users_guide/*.gen.rst
/docs/users_guide/ghc_config.py
/docs/users_guide/ghc_config.pyc
/docs/users_guide/users_guide.pdf
/docs/users_guide/build-html
/docs/users_guide/build-pdf
/docs/users_guide/build-man
/docs/users_guide/.doctrees-*
/docs/users_guide/.doctrees/
/driver/ghci/ghc-pkg-inplace
/driver/ghci/ghci-inplace
/driver/ghci/ghci.res
/driver/package.conf
/driver/package.conf.inplace.old
/settings
/ghc.spec
/ghc/ghc-bin.cabal
/includes/ghcautoconf.h
/includes/ghcplatform.h
/includes/ghcversion.h
/index.html
/inplace/
/libffi/build/
/libffi/ffi.h
/libffi/package.conf.inplace
/libffi/package.conf.inplace.raw
/libffi/stamp*
/libffi/package.conf.install
/libffi/package.conf.install.raw
/libraries/bootstrapping.conf
/libraries/prologue.txt
/libraries/doc-index*.html
/libraries/frames.html
/libraries/ghc-boot/GNUmakefile
/libraries/ghc-boot/ghc-boot.cabal
/libraries/ghc-boot/ghc.mk
/libraries/ghc-boot-th/GNUmakefile
/libraries/ghc-boot-th/ghc-boot-th.cabal
/libraries/ghc-boot-th/ghc.mk
/libraries/ghci/GNUmakefile
/libraries/ghci/ghci.cabal
/libraries/ghci/ghc.mk
/libraries/haddock-util.js
/libraries/hslogo-16.png
/libraries/index-frames.html
/libraries/index.html
/libraries/minus.gif
/libraries/ocean.css
/libraries/plus.gif
/libraries/synopsis.png
/libraries/stamp/
/linter.log
/mk/are-validating.mk
/mk/build.mk
/mk/config.h
/mk/config.h.in
/mk/config.mk
/mk/config.mk.old
/mk/install.mk
/mk/project.mk
/mk/project.mk.old
/mk/validate.mk
/rts/package.conf.inplace
/rts/package.conf.inplace.raw
/rts/package.conf.install
/rts/package.conf.install.raw
/stage3.package.conf
/testsuite_summary*.txt
/testlog*
/utils/runghc/runghc.cabal

/extra-gcc-opts
/sdistprep

.tm_properties
VERSION
GIT_COMMIT_ID

# -------------------------------------------------------------------------------------
# when using a docker image, one can mount the source code directory as the home folder
# -------------------------------------------------------------------------------------
.arcrc
.ghc
.bash_history
.gitconfig

# Should be equal to testdir_suffix from testsuite/driver/testlib.py.
*.run