├── .github ├── ISSUE_TEMPLATE │ └── new_chapter.md └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── README.md ├── book.toml ├── default.nix ├── flake.lock ├── flake.nix ├── shell.nix └── src ├── SUMMARY.md ├── appendices ├── 01_stack_vs_cabal.md ├── 02_static_builds.md ├── 03_cabal_in_ci.md └── 04_transitioning_from_v1_to_v2.md ├── getting_fancy ├── 01_setting_up_a_cabal_project.md ├── 02_adding_doctests.md ├── 03_adding_local_hoogle.md ├── 04_flags_and_conditionals.md ├── 05_profiling_and_benchmarking.md ├── 06_foreign_libraries.md ├── 07_accessing_data_files.md ├── 08_hpack.md ├── 09_custom_setup.md ├── 10_backpack.md └── 11_nix_interop.md ├── leveling_up ├── 01_refactoring_and_re-use.md ├── 02_first_cabal_test-suite.md ├── 03_first_cabal_benchmark.md ├── 04_build_products_and_caching.md ├── 05_generating_documentation_with_haddock.md └── 06_uploading_package_to_hackage.md ├── new_to_cabal ├── 01_installing_cabal_and_ghc.md ├── 02_cabal_repl.md ├── 03_cabal_env.md ├── 04_initializing_a_cabal_repo.md ├── 05_basic_package_properties.md ├── 06_first_cabal_library.md ├── 07_first_cabal_executable.md └── 08_adding_dependencies.md └── preamble ├── 01_what_do_we_mean_when_we_say_cabal.md ├── 02_what_is_a_module_and_a_package.md ├── 03_what_is_hackage.md └── 04_how_to_install_software_with_cabal-install.md /.github/ISSUE_TEMPLATE/new_chapter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/.github/ISSUE_TEMPLATE/new_chapter.md -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.pre-commit-config.yaml 2 | book 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/README.md -------------------------------------------------------------------------------- /book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/book.toml -------------------------------------------------------------------------------- /default.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/default.nix -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/flake.nix -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/shell.nix -------------------------------------------------------------------------------- /src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/SUMMARY.md -------------------------------------------------------------------------------- /src/appendices/01_stack_vs_cabal.md: -------------------------------------------------------------------------------- 1 | # Stack vs cabal 2 | -------------------------------------------------------------------------------- /src/appendices/02_static_builds.md: -------------------------------------------------------------------------------- 1 | # Static builds 2 | -------------------------------------------------------------------------------- /src/appendices/03_cabal_in_ci.md: -------------------------------------------------------------------------------- 1 | # Cabal in CI 2 | -------------------------------------------------------------------------------- /src/appendices/04_transitioning_from_v1_to_v2.md: -------------------------------------------------------------------------------- 1 | # Transitioning from v1 to v2 2 | -------------------------------------------------------------------------------- /src/getting_fancy/01_setting_up_a_cabal_project.md: -------------------------------------------------------------------------------- 1 | # Setting up a cabal project 2 | -------------------------------------------------------------------------------- /src/getting_fancy/02_adding_doctests.md: -------------------------------------------------------------------------------- 1 | # Adding doctests 2 | -------------------------------------------------------------------------------- /src/getting_fancy/03_adding_local_hoogle.md: -------------------------------------------------------------------------------- 1 | # Adding local hoogle 2 | -------------------------------------------------------------------------------- /src/getting_fancy/04_flags_and_conditionals.md: -------------------------------------------------------------------------------- 1 | # Flags and conditionals 2 | -------------------------------------------------------------------------------- /src/getting_fancy/05_profiling_and_benchmarking.md: -------------------------------------------------------------------------------- 1 | # Profiling And Benchmarking 2 | -------------------------------------------------------------------------------- /src/getting_fancy/06_foreign_libraries.md: -------------------------------------------------------------------------------- 1 | # Foreign libraries 2 | -------------------------------------------------------------------------------- /src/getting_fancy/07_accessing_data_files.md: -------------------------------------------------------------------------------- 1 | # Accessing data files 2 | -------------------------------------------------------------------------------- /src/getting_fancy/08_hpack.md: -------------------------------------------------------------------------------- 1 | # Hpack 2 | -------------------------------------------------------------------------------- /src/getting_fancy/09_custom_setup.md: -------------------------------------------------------------------------------- 1 | # Custom Setup 2 | -------------------------------------------------------------------------------- /src/getting_fancy/10_backpack.md: -------------------------------------------------------------------------------- 1 | # Backpack 2 | -------------------------------------------------------------------------------- /src/getting_fancy/11_nix_interop.md: -------------------------------------------------------------------------------- 1 | # Nix Interop 2 | -------------------------------------------------------------------------------- /src/leveling_up/01_refactoring_and_re-use.md: -------------------------------------------------------------------------------- 1 | # Refactoring and re-use 2 | -------------------------------------------------------------------------------- /src/leveling_up/02_first_cabal_test-suite.md: -------------------------------------------------------------------------------- 1 | # First cabal test-suite 2 | -------------------------------------------------------------------------------- /src/leveling_up/03_first_cabal_benchmark.md: -------------------------------------------------------------------------------- 1 | # First cabal benchmark 2 | -------------------------------------------------------------------------------- /src/leveling_up/04_build_products_and_caching.md: -------------------------------------------------------------------------------- 1 | # Build products and caching 2 | -------------------------------------------------------------------------------- /src/leveling_up/05_generating_documentation_with_haddock.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/leveling_up/05_generating_documentation_with_haddock.md -------------------------------------------------------------------------------- /src/leveling_up/06_uploading_package_to_hackage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/leveling_up/06_uploading_package_to_hackage.md -------------------------------------------------------------------------------- /src/new_to_cabal/01_installing_cabal_and_ghc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/new_to_cabal/01_installing_cabal_and_ghc.md -------------------------------------------------------------------------------- /src/new_to_cabal/02_cabal_repl.md: -------------------------------------------------------------------------------- 1 | # Cabal repl 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/03_cabal_env.md: -------------------------------------------------------------------------------- 1 | # Cabal env 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/04_initializing_a_cabal_repo.md: -------------------------------------------------------------------------------- 1 | # Initializing a cabal repo 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/05_basic_package_properties.md: -------------------------------------------------------------------------------- 1 | # Basic package properties 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/06_first_cabal_library.md: -------------------------------------------------------------------------------- 1 | # First cabal library 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/07_first_cabal_executable.md: -------------------------------------------------------------------------------- 1 | # First cabal executable 2 | -------------------------------------------------------------------------------- /src/new_to_cabal/08_adding_dependencies.md: -------------------------------------------------------------------------------- 1 | # Adding dependencies 2 | -------------------------------------------------------------------------------- /src/preamble/01_what_do_we_mean_when_we_say_cabal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/preamble/01_what_do_we_mean_when_we_say_cabal.md -------------------------------------------------------------------------------- /src/preamble/02_what_is_a_module_and_a_package.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/preamble/02_what_is_a_module_and_a_package.md -------------------------------------------------------------------------------- /src/preamble/03_what_is_hackage.md: -------------------------------------------------------------------------------- 1 | # What is hackage? 2 | -------------------------------------------------------------------------------- /src/preamble/04_how_to_install_software_with_cabal-install.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell/cabal-userguide/HEAD/src/preamble/04_how_to_install_software_with_cabal-install.md --------------------------------------------------------------------------------