Rules Haskell
A guide and resource for building Haskell software projects using the Bazel build tool.

What it is
rules-haskell.readthedocs.io provides comprehensive documentation for rules_haskell, a set of Bazel rules for building Haskell code. Bazel is a powerful build tool from Google that offers fast, reproducible, and scalable builds. This site serves as the official guide for developers looking to integrate Haskell into their Bazel-based build systems.
The documentation covers a wide range of topics, from a beginner's introduction to building a simple Haskell project with Bazel to advanced use cases for larger, more complex codebases. It provides practical guidance on how to get started, refine builds, and use labels to reference targets effectively.
Key features and services detailed include starting a new project, making rules_haskell available, picking a compiler, loading targets in a REPL, and configuring IDE integration with ghcide. It also covers specialized tasks such as building Cabal packages, incremental building, generating API documentation, linting code, and even cross-compilation.
The site is an essential resource for software engineers and Haskell developers working in environments that require robust build automation. It is particularly notable for its detailed examples and solutions to common build problems, helping teams adopt Bazel for Haskell development efficiently. The project is open source and hosted on GitHub, encouraging community contributions and support.
This description was generated by AI from the site's public content and may contain errors.
What you can do there
- Learn to build Haskell projects with Bazel
- Access guides for common Haskell build use cases
- Configure IDE integration with ghcide
- Build Cabal packages using Bazel
- Implement cross-compilation for Haskell
Who it's for
Software engineers and Haskell developers needing robust build automation.
Frequently asked questions about rules-haskell.readthedocs.io
›What is Bazel?
Bazel is a build tool from Google that automates the building and testing of software, known for its speed, reproducibility, and scalability.
›What are the main features of rules_haskell?
It provides rules for building Haskell code with Bazel, supporting tasks like compiling, testing, REPL integration, IDE setup, and cross-compilation.
›How do I get started with rules_haskell?
The documentation provides a beginner's guide to building a small Haskell project, including requirements and step-by-step instructions.
›Can I use rules_haskell with Cabal packages?
Yes, the documentation includes guides on building Cabal packages, both with and without using Nix.
›Does rules_haskell support IDE integration?
Yes, it offers guidance on configuring IDE integration with ghcide for a better development experience.
›Is rules_haskell suitable for large projects?
Yes, it covers advanced use cases like incremental building and cross-compilation, making it suitable for complex codebases.
›Is this project open source?
Yes, rules_haskell is an open source project hosted on GitHub, where users can star it, contribute, or report issues.
