Skip to content

Commit

Permalink
ack, forgot about 7.8 compatibility..
Browse files Browse the repository at this point in the history
  • Loading branch information
gridaphobe committed Aug 10, 2015
1 parent 69c4a08 commit 949d52a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Language/Haskell/Liquid/Bare/Lookup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import PrelInfo (wiredInThings)
import PrelNames (fromIntegerName, smallIntegerName, integerTyConName)
import RdrName (setRdrNameSpace)
import SrcLoc (SrcSpan, GenLocated(L))
import TcRnDriver (tcRnLookupRdrName)
import TcEnv
import TyCon
import TysWiredIn
Expand All @@ -39,7 +38,7 @@ import qualified Data.HashMap.Strict as M
import Language.Fixpoint.Names (hpropConName, isPrefixOfSym, lengthSym, propConName, symbolString)
import Language.Fixpoint.Types (Symbol, Symbolic(..))

import Language.Haskell.Liquid.GhcMisc (lookupRdrName, sourcePosSrcSpan)
import Language.Haskell.Liquid.GhcMisc (lookupRdrName, sourcePosSrcSpan, tcRnLookupRdrName)
import Language.Haskell.Liquid.Types
import Language.Haskell.Liquid.WiredIn

Expand Down
5 changes: 5 additions & 0 deletions src/Language/Haskell/Liquid/GhcMisc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ lintCoreBindings :: [Var] -> CoreProgram -> (Bag MsgDoc, Bag MsgDoc)

synTyConRhs_maybe :: TyCon -> Maybe Type

tcRnLookupRdrName :: HscEnv -> GHC.Located RdrName -> IO (Messages, Maybe [Name])

desugarModule tcm = do
let ms = pm_mod_summary $ tm_parsed_module tcm
Expand Down Expand Up @@ -500,6 +501,8 @@ synTyConRhs_maybe t
= Just rhs
synTyConRhs_maybe _ = Nothing

tcRnLookupRdrName env rn = TcRnDriver.tcRnLookupRdrName env (unLoc rn)

#else

-- desugarModule = GHC.desugarModule
Expand All @@ -512,4 +515,6 @@ lintCoreBindings = CoreLint.lintCoreBindings CoreDoNothing

synTyConRhs_maybe = TC.synTyConRhs_maybe

tcRnLookupRdrName = TcRnDriver.tcRnLookupRdrName

#endif

1 comment on commit 949d52a

@hnsl
Copy link

@hnsl hnsl commented on 949d52a Aug 11, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.