[commit: packages/hoopl] master: Export 'Showing' from Hoopl.Show (8cae627)

git at git.haskell.org git at git.haskell.org
Mon Dec 21 22:13:40 UTC 2015


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

On branch  : master
Link       : http://git.haskell.org/packages/hoopl.git/commitdiff/8cae627dfd17e90c0caaa7c242970176ff8cdb95

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

commit 8cae627dfd17e90c0caaa7c242970176ff8cdb95
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Sat Aug 8 13:41:54 2015 +0200

    Export 'Showing' from Hoopl.Show
    
    GHC Trac user nimnul reports in
    https://ghc.haskell.org/trac/ghc/ticket/10540:
    
      Hoopl exports
    
        showGraph :: Showing n -> Graph n e x -> String
    
      But it doesn't export Showing. This doesn't make sense, as it's a
      user-supplied function. So to know what I should pass to showGraph I can only
      look at the source. :i Showing doesn't work.
    
      Below is a patch to export the innocent type synonym:


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

8cae627dfd17e90c0caaa7c242970176ff8cdb95
 src/Compiler/Hoopl/Show.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Compiler/Hoopl/Show.hs b/src/Compiler/Hoopl/Show.hs
index 8a8b35f..66172b0 100644
--- a/src/Compiler/Hoopl/Show.hs
+++ b/src/Compiler/Hoopl/Show.hs
@@ -4,7 +4,7 @@
 #endif
 
 module Compiler.Hoopl.Show 
-  ( showGraph, showFactBase
+  ( showGraph, showFactBase, Showing
   )
 where
 



More information about the ghc-commits mailing list