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

Safe HaskellNone
LanguageHaskell2010

FP.API.ModuleName

Description

Valid Haskell qualified module names.

Synopsis

Documentation

fromModuleName :: Text -> Maybe ModuleName Source

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

isModulePath :: Text -> Bool Source

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

fromModulePath :: Text -> Maybe ModuleName Source

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).