diff options
| author | Shea Levy <shea@shealevy.com> | 2016-12-17 20:08:58 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-17 20:58:35 -0500 |
| commit | 52ba9470a7e85d025dc84a6789aa809cdd68b566 (patch) | |
| tree | eedb856723fb2dc0101b946af3702e6c6aee18da /compiler/rename/RnSplice.hs | |
| parent | e0fe7c3131c4a18ddd9dd9f2afdd46cafc8cd7ae (diff) | |
| download | haskell-52ba9470a7e85d025dc84a6789aa809cdd68b566.tar.gz | |
Allow use of the external interpreter in stage1.
Now that we have -fexternal-interpreter, we can lose most of the GHCI ifdefs.
Reviewers: simonmar, goldfire, austin, hvr, bgamari
Reviewed By: simonmar
Subscribers: RyanGlScott, mpickering, angerman, thomie
Differential Revision: https://phabricator.haskell.org/D2826
Diffstat (limited to 'compiler/rename/RnSplice.hs')
| -rw-r--r-- | compiler/rename/RnSplice.hs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/compiler/rename/RnSplice.hs b/compiler/rename/RnSplice.hs index 0c41ed30b6..ccfd00257b 100644 --- a/compiler/rename/RnSplice.hs +++ b/compiler/rename/RnSplice.hs @@ -5,9 +5,7 @@ module RnSplice ( rnSpliceType, rnSpliceExpr, rnSplicePat, rnSpliceDecl, rnBracket, checkThLocalName -#ifdef GHCI , traceSplice, SpliceInfo(..) -#endif ) where #include "HsVersions.h" @@ -35,7 +33,6 @@ import {-# SOURCE #-} RnExpr ( rnLExpr ) import TcEnv ( checkWellStaged ) import THNames ( liftName ) -#ifdef GHCI import DynFlags import FastString import ErrUtils ( dumpIfSet_dyn_printer ) @@ -57,7 +54,6 @@ import {-# SOURCE #-} TcSplice import GHCi.RemoteTypes ( ForeignRef ) import qualified Language.Haskell.TH as TH (Q) -#endif import qualified GHC.LanguageExtensions as LangExt @@ -201,23 +197,6 @@ quotedNameStageErr br = sep [ text "Stage error: the non-top-level quoted name" <+> ppr br , text "must be used at the same stage at which is is bound" ] -#ifndef GHCI -rnTopSpliceDecls :: HsSplice RdrName -> RnM ([LHsDecl RdrName], FreeVars) -rnTopSpliceDecls e = failTH e "Template Haskell top splice" - -rnSpliceType :: HsSplice RdrName -> PostTc Name Kind - -> RnM (HsType Name, FreeVars) -rnSpliceType e _ = failTH e "Template Haskell type splice" - -rnSpliceExpr :: HsSplice RdrName -> RnM (HsExpr Name, FreeVars) -rnSpliceExpr e = failTH e "Template Haskell splice" - -rnSplicePat :: HsSplice RdrName -> RnM (Either (Pat RdrName) (Pat Name), FreeVars) -rnSplicePat e = failTH e "Template Haskell pattern splice" - -rnSpliceDecl :: SpliceDecl RdrName -> RnM (SpliceDecl Name, FreeVars) -rnSpliceDecl e = failTH e "Template Haskell declaration splice" -#else {- ********************************************************* @@ -760,7 +739,6 @@ illegalUntypedSplice = text "Untyped splices may not appear in typed brackets" -- = vcat [ hang (text "In the splice:") -- 2 (char '$' <> pprParendExpr expr) -- , text "To see what the splice expanded to, use -ddump-splices" ] -#endif checkThLocalName :: Name -> RnM () checkThLocalName name |
