This is liable to change in the future.A
haskell_binary()rule represents a groups of Haskell sources and deps which build an executable.
The name of the rule.
The main module serving as the entry point into the binary. If not specified, the compiler default is used.
A list of Haskell sources to be built by this rule.
Flags to pass to the Haskell compiler when compiling this rule's sources.
Platform specific dependencies. These should be specified as a list of pairs where the first element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name is matched, and the second element is a list of dependencies (same format as
deps) that are exported if the platform matches the regex. See
depsfor more information.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
haskell_binary( name = 'foo', srcs = [ 'Foo.hs', ], )