diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-05-11 16:49:54 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-05-11 17:33:13 -0400 |
commit | b9d1dae0c0ee0bd3b7e9be3c83ce932d837944f1 (patch) | |
tree | 419dd1fdcaf78559dd205371a4d63d6a8c4269e9 /docs/users_guide | |
parent | 01db13586a6eab9f66101b01d1b0584f334d5d25 (diff) | |
download | haskell-b9d1dae0c0ee0bd3b7e9be3c83ce932d837944f1.tar.gz |
users-guide: Document requirement of at least one -dep-suffix
This requirement was introduced around 7.8 but was never documented.
Resolves #9287.
Diffstat (limited to 'docs/users_guide')
-rw-r--r-- | docs/users_guide/separate_compilation.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst index a140d46341..0c981d5775 100644 --- a/docs/users_guide/separate_compilation.rst +++ b/docs/users_guide/separate_compilation.rst @@ -1188,13 +1188,14 @@ generation are: .. ghc-flag:: -dep-suffix <suf> - Make extra dependencies that declare that files with suffix - ``.<suf>_<osuf>`` depend on interface files with suffix - ``.<suf>_hi``, or (for ``{-# SOURCE #-}`` imports) on ``.hi-boot``. + Make dependencies that declare that files with suffix + ``.<suf><osuf>`` depend on interface files with suffix + ``.<suf>hi``, or (for ``{-# SOURCE #-}`` imports) on ``.hi-boot``. Multiple ``-dep-suffix`` flags are permitted. For example, - ``-dep-suffix a -dep-suffix b`` will make dependencies for ``.hs`` + ``-dep-suffix a_ -dep-suffix b_`` will make dependencies for ``.hs`` on ``.hi``, ``.a_hs`` on ``.a_hi``, and ``.b_hs`` on ``.b_hi``. - (Useful in conjunction with NoFib "ways".) + Note that you must provide at least one suffix; if you do not want a suffix + then pass ``-dep-suffix ''``. .. ghc-flag:: --exclude-module=<file> |