Workspace rules (GHC binary distributions)
Macros and Functions
Create a new repository from binary distributions of GHC.
The repository exports two targets:
binfilegroup containing all GHC commands,
These targets are unpacked from a binary distribution specific to your platform. Only the platforms that have a "binary package" on the GHC download page are supported.
load("@rules_haskell//haskell:ghc_bindist.bzl", "ghc_bindist") # This repository rule creates @ghc repository. ghc_bindist( name = "ghc", version = "8.2.2", )
A unique name for the repository.
The desired GHC version.
Register GHC binary distributions for all platforms as toolchains.