[commit: ghc] master: docs: Fix wrong module name in hsig example (ce9b459)

git at git.haskell.org git at git.haskell.org
Mon Aug 6 22:30:13 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ce9b459de30e15f2d65518ca12974a692256d477/ghc

>---------------------------------------------------------------

commit ce9b459de30e15f2d65518ca12974a692256d477
Author: Mathieu Boespflug <m at tweag.io>
Date:   Sat Jul 21 13:48:33 2018 +0200

    docs: Fix wrong module name in hsig example
    
    In the module signatures section, two modules were defined, `Str` and
    `A`, but `A` was importing `Text`, not `Str`.
    
    (cherry picked from commit 26ab3635ca342c88310321d7f310f1c12c23ec4c)


>---------------------------------------------------------------

ce9b459de30e15f2d65518ca12974a692256d477
 docs/users_guide/separate_compilation.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst
index 71a1a46..613e4de 100644
--- a/docs/users_guide/separate_compilation.rst
+++ b/docs/users_guide/separate_compilation.rst
@@ -790,7 +790,7 @@ be able to pick a particular implementation of strings::
         toString s = s
 
     module A where
-        import Text
+        import Str
         z = toString empty
 
 By replacing ``Str.hs`` with a signature ``Str.hsig``, ``A`` (and



More information about the ghc-commits mailing list