blob: 34362c75c22983e95ba7dda67b86f529de7f152f [file] [log] [blame]
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace haskell_binary}
/***/
{template .soyweb}
{call buck.page}
{param title: 'haskell_binary()' /}
{param navid: 'rule_haskell_binary' /}
{param prettify: true /}
{param description}
A haskell_binary() rule represents a Haskell executable.
{/param}
{param content}
{call buck.rule}
{param status: 'UNFROZEN' /}
{param overview}
A <code>haskell_binary()</code> rule represents a groups of Haskell sources
and deps which build an executable.
{/param}
{param args}
{call buck.name_arg /}
{call buck.arg}
{param name: 'main' /}
{param default: 'None' /}
{param desc}
The main module serving as the entry point into the binary. If not specified,
the compiler default is used.
{/param}
{/call}
{call native_common.link_style /}
{call haskell_common.srcs_arg /}
{call haskell_common.compiler_flags_arg /}
{call haskell_common.deps_arg /}
{call buck.platform_deps_arg /}
{/param} // close args
{param examples}
{literal}<pre class="prettyprint lang-py">
haskell_binary(
name = 'foo',
srcs = [
'Foo.hs',
],
)
</pre>{/literal}
{/param}
{/call} // close buck.rule
{/param}
{/call}
{/template}