liquidhaskell-0.5.0.0: Liquid Types for Haskell

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.Bare.Lookup

Synopsis

Documentation

class Symbolic a => GhcLookup a where Source

Methods

lookupName :: HscEnv -> ModName -> a -> IO [Name] Source

srcSpan :: a -> SrcSpan Source

lookupGhcThing :: (GhcLookup a, MonadState BareEnv m, MonadError (TError t) m, MonadIO m) => [Char] -> (TyThing -> Maybe b) -> a -> m b Source

lookupGhcVar :: GhcLookup a => a -> BareM Var Source

It's possible that we have already resolved the Name we are looking for, but have had to turn it back into a String, e.g. to be used in an Expr, as in {v:Ordering | v = EQ}. In this case, the fully-qualified Name (GHC.Types.EQ) will likely not be in scope, so we store our own mapping of fully-qualified Names to Vars and prefer pulling Vars from it.