-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Inspect Haskell source files. -- -- Inspect .hs files using the ghc api. @package hsinspect @version 0.0.13 -- | Very minimal ADT for outputting some S-Expressions. module HsInspect.Sexp data Sexp SexpCons :: Sexp -> Sexp -> Sexp SexpNil :: Sexp SexpString :: String -> Sexp SexpSymbol :: String -> Sexp list :: [Sexp] -> Sexp toList :: Sexp -> Maybe [Sexp] alist :: [(Sexp, Sexp)] -> Sexp toAList :: Sexp -> Maybe [(String, Sexp)] class ToSexp a toSexp :: ToSexp a => a -> Sexp filterNil :: Sexp -> Sexp render :: Sexp -> String instance HsInspect.Sexp.ToSexp HsInspect.Sexp.Sexp instance HsInspect.Sexp.ToSexp GHC.Base.String instance HsInspect.Sexp.ToSexp GHC.Types.Bool instance HsInspect.Sexp.ToSexp a => HsInspect.Sexp.ToSexp [a] instance HsInspect.Sexp.ToSexp a => HsInspect.Sexp.ToSexp (GHC.Maybe.Maybe a) instance Data.String.IsString HsInspect.Sexp.Sexp module HsInspect.Json encodeJson :: DynFlags -> JsonDoc -> String sexpToJson :: Sexp -> Either String JsonDoc module HsInspect.Util homeSources :: GhcMonad m => m [FilePath] showGhc :: Outputable a => a -> String getTargetModules :: GhcMonad m => m (Set ModuleName) walkSuffix :: String -> FilePath -> IO [FilePath] walk :: FilePath -> IO [FilePath] concatMapM :: Monad m => (a -> m [b]) -> [a] -> m [b] split :: (a -> Bool) -> [a] -> [[a]] -- | Dumps an index of all terms and their types module HsInspect.Index index :: GhcMonad m => m [PackageEntries] data PackageEntries instance GHC.Classes.Ord HsInspect.Index.ModuleEntries instance GHC.Classes.Eq HsInspect.Index.ModuleEntries instance GHC.Classes.Ord HsInspect.Index.Entry instance GHC.Classes.Eq HsInspect.Index.Entry instance GHC.Classes.Ord HsInspect.Index.Exported instance GHC.Classes.Eq HsInspect.Index.Exported instance HsInspect.Sexp.ToSexp HsInspect.Index.PackageEntries instance HsInspect.Sexp.ToSexp HsInspect.Index.ModuleEntries instance HsInspect.Sexp.ToSexp HsInspect.Index.Entry instance HsInspect.Sexp.ToSexp HsInspect.Index.Exported module HsInspect.Workarounds parseHeader' :: GhcMonad m => FilePath -> m ([String], HsModule GhcPs) importsOnly :: GhcMonad m => Set ModuleName -> FilePath -> m (Maybe ModuleName, Target) parseModuleName' :: GhcMonad m => FilePath -> m (Maybe ModuleName) minf_rdr_env' :: GhcMonad m => ModuleName -> m GlobalRdrEnv module HsInspect.Packages packages :: GhcMonad m => m PkgSummary data PkgSummary instance GHC.Classes.Ord HsInspect.Packages.PkgSummary instance GHC.Classes.Eq HsInspect.Packages.PkgSummary instance HsInspect.Sexp.ToSexp HsInspect.Packages.PkgSummary module HsInspect.Imports imports :: GhcMonad m => FilePath -> m [Qualified] data Qualified instance GHC.Show.Show HsInspect.Imports.Qualified instance GHC.Classes.Ord HsInspect.Imports.Qualified instance GHC.Classes.Eq HsInspect.Imports.Qualified instance HsInspect.Sexp.ToSexp HsInspect.Imports.Qualified