ghci: fix UNREG build (missing fromJust import)
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 18 Dec 2015 00:00:41 +0000 (00:00 +0000)
committerSergei Trofimovich <siarheit@google.com>
Fri, 18 Dec 2015 00:01:36 +0000 (00:01 +0000)
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@google.com>
Test Plan: build --enable-unregisterised ghc

Reviewers: simonmar, bgamari, austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1649

libraries/ghci/GHCi/InfoTable.hsc

index d9d6314..1a1116f 100644 (file)
@@ -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