X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fusing.sgml;h=92517b0ddb8a2abb04f44049869e8d6d22be1407;hb=aea8d16135ed4ad5c21f7a8edcfcb7a760a4beac;hp=0f4f04981564db24830c67f40911ac8173967969;hpb=75a7e5ff20dbc3f3b583d31b4a1ff0b6a1459d49;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index 0f4f049..92517b0 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -1695,35 +1695,38 @@ construction of interface files, is (allegedly) in the works. A package specification looks like this: - ("mypkg", - "4.08", - Package - { - 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"] - } - ) + Package { + name = "mypkg", + 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"] + } - The first line is the name of the package, for use with - the -package flag and as listed in the - --list-packages list. The second line is the - version of GHC that was used to compile any Haskell code in this - package (GHC will refuse to add the package if its version - number differs from this one). The rest of the components of - the package specification may be specified in any order, and - are: + Components of a package specification may be specified in + any order, and are: + name + name + package specification + + The package's name, for use with + the -package flag and as listed in the + --list-packages list. + + + + + import_dirs import_dirs package specification