[commit: ghc] ghc-8.6: docs: Fix wrong module name in hsig example (6369aab)

git at git.haskell.org git at git.haskell.org
Tue Aug 7 12:30:22 UTC 2018


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

On branch  : ghc-8.6
Link       : http://ghc.haskell.org/trac/ghc/changeset/6369aab26e7a73e51efcd4da442c2adb6a0a5fbf/ghc

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

commit 6369aab26e7a73e51efcd4da442c2adb6a0a5fbf
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)
    (cherry picked from commit ce9b459de30e15f2d65518ca12974a692256d477)


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

6369aab26e7a73e51efcd4da442c2adb6a0a5fbf
 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 e7501c2..e29d19e 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