Support for c2hs
A unique name for this target.
Extra arguments that should be passedto c2hs.
Directory in which module hierarchy starts.
Executable version. If this is specified, CPP version macros will be generated for this build.
Macros and Functions
Declare a Haskell c2hs toolchain.
You need at least one of these declared somewhere in your
files for the
chs_library rule to work. Once declared, you then
need to register the toolchain using
WORKSPACE file (see example below).
c2hs_toolchain( name = "c2hs", c2hs = "@c2hs//:bin", )
@c2hs is an external repository defined in the
WORKSPACE, e.g. using:
nixpkgs_package( name = "c2hs", attribute_path = "haskell.packages.ghc822.c2hs", ) register_toolchains("//:c2hs")