haskell-docs-4.2.1: A program to find and display the docs and type of a name

Safe HaskellNone

Haskell.Docs.Index

Contents

Description

Make an index from identifiers to modules.

Synopsis

Looking up identifiers

lookupIdent :: Text -> IO (Maybe (HashMap Text [Text]))Source

Lookup an identifier. Automatically creates an index if none exists.

Internally generating indexes

type Index = HashMap Text TextSource

An identifier index.

generateIndex :: IO IndexSource

Generate an identifier index.

generateFlatFile :: IO [(String, String, String)]Source

Generate a flat file of all package, module, name combinations.

saveIndex :: Index -> IO ()Source

Save the index to file.

indexFilename :: FilePathSource

Filename to read/write index to.

Internally looking up inside indexes

lookupInIndex :: Text -> IO (Maybe (HashMap Text [Text]))Source

Lookup an entry in the index by identifier.

extractModules :: ByteString -> HashMap Text [Text]Source

Extract the "package:Module package:Module" string into a map from package to modules.