fpco-api-1.2.0.2: Simple interface to the FP Complete IDE API.

Safe HaskellNone

FP.API.ModuleName

Description

Valid Haskell qualified module names.

Synopsis

Documentation

fromModuleName :: Text -> Maybe ModuleNameSource

Parses normal modules, or main modules with an additional filepath.

isModulePath :: Text -> BoolSource

Determine if the given textual FilePath might be a valid module path.

fromModulePath :: Text -> Maybe ModuleNameSource

Guesses a module name from a path, assuming that it ends in .hs, and every path component is a component of the name. Should be the inverse of toModulePath (other than the Just).