Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
a8e67124
Commit
a8e67124
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-24 15:31:47 by simonmar]
update documentation to reflect changes in the format of a package spec.
parent
efc23818
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/docs/users_guide/using.sgml
+44
-15
44 additions, 15 deletions
ghc/docs/users_guide/using.sgml
with
44 additions
and
15 deletions
ghc/docs/users_guide/using.sgml
+
44
−
15
View file @
a8e67124
...
...
@@ -1673,15 +1673,16 @@ construction of interface files, is (allegedly) in the works.
"4.08",
Package
{
import_dirs = ["/usr/local/lib/imports/mypkg"],
library_dirs = ["/usr/local/lib"],
libraries = ["HSmypkg", "HSmypkg_cbits"],
include_dirs = [],
c_includes = ["HsMyPkg.h"],
package_deps = ["text", "data"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = ["-lmy_clib"]
import_dirs = ["/usr/local/lib/imports/mypkg"],
library_dirs = ["/usr/local/lib"],
hs_libraries = ["HSmypkg" ],
extra_libraries = ["HSmypkg_cbits"],
include_dirs = [],
c_includes = ["HsMyPkg.h"],
package_deps = ["text", "data"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = ["-lmy_clib"]
}
)
</screen>
...
...
@@ -1717,14 +1718,42 @@ construction of interface files, is (allegedly) in the works.
</varlistentry>
<varlistentry>
<term><literal>libraries</literal></term>
<indexterm><primary><literal>libraries</literal></primary>
<term><literal>
hs_
libraries</literal></term>
<indexterm><primary><literal>
hs_
libraries</literal></primary>
<secondary>package specification</secondary></indexterm>
<listitem>
<para>A list of libraries for this package, with the
<literal>.a</literal> or <literal>.dll</literal> suffix
omitted. On Unix, the <literal>lib</literal> prefix is
also omitted.</para>
<para>A list of libraries containing Haskell code for this
package, with the <literal>.a</literal> or
<literal>.dll</literal> suffix omitted. On Unix, the
<literal>lib</literal> prefix is also omitted.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>extra_libraries</literal></term>
<indexterm><primary><literal>extra_libraries</literal></primary>
<secondary>package specification</secondary></indexterm>
<listitem>
<para>A list of extra libraries for this package. The
difference between <literal>hs_libraries</literal> and
<literal>extra_libraries</literal> is that
<literal>hs_libraries</literal> normally have several
versions, to support profiling, parallel and other build
options. The various versions are given different
suffixes to distinguish them, for example the profiling
version of the standard prelude library is named
<filename>libHSstd_p.a</filename>, with the
<literal>_p</literal> indicating that this is a profiling
version. The suffix is added automatically by GHC for
<literal>hs_libraries</literal> only, no suffix is added
for libraries in
<literal>extra_libraries</literal>.</para>
<para>Also, <literal>extra_libraries</literal> are placed
on the linker command line before the
<literal>hs_libraries</literal> for the same package. If
your package has dependencies in the other direction, you
might need to make two separate packages.</para>
</listitem>
</varlistentry>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment