diff options
author | Chris Martin <ch.martin@gmail.com> | 2017-08-14 21:15:22 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-08-17 16:42:55 -0400 |
commit | 0e1b6f85c69834e907ebcb9fcb5c94e6a2fb3287 (patch) | |
tree | fea1ca1b10649d5849aaa38edf995e21c1e59e57 | |
parent | 2c0ab47f7cab42c2123410f07b909f8a06b6920a (diff) | |
download | haskell-0e1b6f85c69834e907ebcb9fcb5c94e6a2fb3287.tar.gz |
Fix index entries in "separate compilation" section
This appears to have been a mistake from the translation of the manual into RST
format by 4fd6207ec6.
-rw-r--r-- | docs/users_guide/separate_compilation.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst index 06af6f0ddf..85c82540e4 100644 --- a/docs/users_guide/separate_compilation.rst +++ b/docs/users_guide/separate_compilation.rst @@ -522,11 +522,15 @@ files, thus: :: g :: TA -> TB g (MkTA x) = MkTB x -``hs-boot`` files importing, ``hi-boot`` files Here ``A`` imports ``B``, -but ``B`` imports ``A`` with a ``{-# SOURCE #-}`` pragma, which breaks -the circular dependency. Every loop in the module import graph must be -broken by a ``{-# SOURCE #-}`` import; or, equivalently, the module -import graph must be acyclic if ``{-# SOURCE #-}`` imports are ignored. +.. index:: + single: ``hs-boot`` files + single: importing, ``hi-boot`` files + +Here ``A`` imports ``B``, but ``B`` imports ``A`` with a +``{-# SOURCE #-}`` pragma, which breaks the circular dependency. Every +loop in the module import graph must be broken by a ``{-# SOURCE #-}`` +import; or, equivalently, the module import graph must be acyclic if +``{-# SOURCE #-}`` imports are ignored. For every module ``A.hs`` that is ``{-# SOURCE #-}``-imported in this way there must exist a source file ``A.hs-boot``. This file contains an |