liquidhaskell-boot-0.9.2.5.0: Liquid Types for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Haskell.Liquid.GHC.Interface

Synopsis

Printer

predicates

Internal exports (provisional)

extractSpecComments :: ParsedModule -> [(Maybe RealSrcLoc, String)] Source #

Extract Specifications from GHC -------------------------------------------

extractSpecQuotes' :: (a -> Module) -> (a -> [Annotation]) -> a -> [BPspec] Source #

classCons :: Maybe [ClsInst] -> [Id] Source #

Extract Ids ---------------------------------------------------------------

makeFamInstEnv :: [FamInst] -> ([TyCon], [(Symbol, DataCon)]) Source #

Family instance information

parseSpecFile :: FilePath -> IO (ModName, BareSpec) Source #

Finding & Parsing Files ---------------------------------------------------

Parse a spec file by path.

On a parse error, we fail.

TODO, Andres: It would be better to fail more systematically, but currently we seem to have an option between throwing an error which will be reported badly, or printing the error ourselves.

lookupTyThings :: HscEnv -> ModSummary -> TcGblEnv -> IO [(Name, Maybe TyThing)] Source #

lookupTyThings grabs all the Names and associated TyThing known to GHC for this module; we will use this to create our name-resolution environment (see Resolve)

availableTyCons :: HscEnv -> ModSummary -> TcGblEnv -> [AvailInfo] -> IO [TyCon] Source #

Returns all the available (i.e. exported) TyCons (type constructors) for the input Module.

availableVars :: HscEnv -> ModSummary -> TcGblEnv -> [AvailInfo] -> IO [Var] Source #

Returns all the available (i.e. exported) Vars for the input Module.

updLiftedSpec :: BareSpec -> Maybe BareSpec -> BareSpec Source #

Per-Module Pipeline -------------------------------------------------------

Orphan instances

Show TargetInfo Source # 
Instance details

PPrint TargetInfo Source # 
Instance details

PPrint TargetSpec Source #

Pretty Printing -----------------------------------------------------------

Instance details

PPrint TargetVars Source # 
Instance details

Result SourceError Source # 
Instance details