Fix up PBase exports, expose Generics metadata

This commit is contained in:
Stephen Diehl
2017-01-02 13:28:21 +00:00
parent 3994639b2b
commit 39d56792ce
2 changed files with 31 additions and 4 deletions
+26 -4
View File
@@ -13,10 +13,24 @@ module Base (
#if defined(__GLASGOW_HASKELL__) && ( __GLASGOW_HASKELL__ >= 600 ) #if defined(__GLASGOW_HASKELL__) && ( __GLASGOW_HASKELL__ >= 600 )
-- Base GHC types -- Base GHC types
import GHC.Num as X import GHC.Num as X (
import GHC.Enum as X Num(..)
, Integer
, subtract
)
import GHC.Enum as X (
Bounded(..)
, Enum(..)
, boundedEnumFrom
, boundedEnumFromThen
)
import GHC.Real as X import GHC.Real as X
import GHC.Float as X import GHC.Float as X (
Float(..)
, Double(..)
, showFloat
, showSignedFloat
)
import GHC.Err as X ( import GHC.Err as X (
undefined undefined
, error , error
@@ -37,6 +51,8 @@ import GHC.Base as X (
, maxInt , maxInt
, minInt , minInt
) )
-- Exported for lifting into new functions.
import System.IO as X ( import System.IO as X (
print print
, putStr , putStr
@@ -55,6 +71,10 @@ import GHC.Types as X (
#endif #endif
) )
#if ( __GLASGOW_HASKELL__ >= 710 )
import GHC.StaticPtr as X (StaticPtr)
#endif
#if ( __GLASGOW_HASKELL__ >= 800 ) #if ( __GLASGOW_HASKELL__ >= 800 )
import GHC.OverloadedLabels as X ( import GHC.OverloadedLabels as X (
IsLabel(..) IsLabel(..)
@@ -69,12 +89,13 @@ import GHC.ExecutionStack as X (
import GHC.Stack as X ( import GHC.Stack as X (
CallStack CallStack
, HasCallStack , type HasCallStack
, callStack , callStack
, prettySrcLoc , prettySrcLoc
, currentCallStack , currentCallStack
, getCallStack , getCallStack
, prettyCallStack , prettyCallStack
, withFrozenCallStack
) )
{- {-
@@ -105,6 +126,7 @@ import Data.Kind as X (
) )
#endif #endif
-- Default Prelude defines this at the toplevel module, so we do as well.
infixr 0 $! infixr 0 $!
($!) :: (a -> b) -> a -> b ($!) :: (a -> b) -> a -> b
+5
View File
@@ -372,12 +372,17 @@ import GHC.Generics as X (
, S1 , S1
, (:+:) , (:+:)
, (:*:) , (:*:)
, (:.:)
, Rec0 , Rec0
, Constructor(..) , Constructor(..)
, Datatype(..)
, Selector(..) , Selector(..)
, Fixity(..) , Fixity(..)
, Associativity(..)
#if ( __GLASGOW_HASKELL__ >= 800 ) #if ( __GLASGOW_HASKELL__ >= 800 )
, Meta(..) , Meta(..)
, FixityI(..)
, URec
#endif #endif
) )