[commit: ghc] master: ghci: fix UNREG build (missing fromJust import) (06cb695)

git at git.haskell.org git at git.haskell.org
Fri Dec 18 00:01:12 UTC 2015


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

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

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

commit 06cb695c17f3df70255181e3205ff2b64ba016fa
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Fri Dec 18 00:00:41 2015 +0000

    ghci: fix UNREG build (missing fromJust import)
    
    libraries/ghci/GHCi/InfoTable.hsc:249:45: error:
        • Variable not in scope: fromJust :: Maybe EntryFunPtr -> a0
        • Perhaps you meant ‘fromList’ (imported from GHC.Exts)
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>
    
    Test Plan: build --enable-unregisterised ghc
    
    Reviewers: simonmar, bgamari, austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1649


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

06cb695c17f3df70255181e3205ff2b64ba016fa
 libraries/ghci/GHCi/InfoTable.hsc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libraries/ghci/GHCi/InfoTable.hsc b/libraries/ghci/GHCi/InfoTable.hsc
index d9d6314..1a1116f 100644
--- a/libraries/ghci/GHCi/InfoTable.hsc
+++ b/libraries/ghci/GHCi/InfoTable.hsc
@@ -11,6 +11,9 @@ module GHCi.InfoTable
   , conInfoPtr
   ) where
 
+#if !defined(TABLES_NEXT_TO_CODE)
+import Data.Maybe (fromJust)
+#endif
 import Foreign
 import Foreign.C
 import GHC.Ptr



More information about the ghc-commits mailing list