Skip to content
Snippets Groups Projects
Commit 0e1b6f85 authored by Chris Martin's avatar Chris Martin Committed by Ben Gamari
Browse files

Fix index entries in "separate compilation" section

This appears to have been a mistake from the translation of the manual into RST
format by 4fd6207e.
parent 2c0ab47f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment