Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / src / WishList.adoc
CommitLineData
7f918cf1
CE
1WishList
2========
3
4This page is mainly for recording recurring feature requests. If you
5have a new feature request, you probably want to query interest on one
6of the <:Contact:mailing lists> first.
7
8Please be aware of MLton's policy on
9<:LanguageChanges:language changes>. Nonetheless, we hope to provide
10support for some of the "immediate" <:SuccessorML:> proposals in a
11future release.
12
13
14== Support for link options in ML Basis files ==
15
16Introduce a mechanism to specify link options in <:MLBasis:ML Basis>
17files. For example, generalizing a bit, a ML Basis declaration of the
18form
19
20----
21option "option"
22----
23
24could be introduced whose semantics would be the same (as closely as
25possible) as if the option string were specified on the compiler
26command line.
27
28The main motivation for this is that a MLton library that would
29introduce bindings (through <:ForeignFunctionInterface:FFI>) to an
30external library could be packaged conveniently as a single MLB file.
31For example, to link with library `foo` the MLB file would simply
32contain:
33
34----
35option "-link-opt -lfoo"
36----
37
38Similar feature requests have been discussed previously on the mailing lists:
39
40* http://www.mlton.org/pipermail/mlton/2004-July/025553.html
41* http://www.mlton.org/pipermail/mlton/2005-January/026648.html