Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ModulePackage = ModulePackage {}
- mkPackage :: Text -> ModulePackage
- data PackageConfig = PackageConfig {}
- data ModuleLocation
- = FileModule { }
- | InstalledModule { }
- | OtherLocation { }
- | NoLocation
- locationId :: ModuleLocation -> Text
- noLocation :: ModuleLocation
- data ModuleId = ModuleId {}
- moduleName :: Lens' ModuleId Text
- moduleLocation :: Lens' ModuleId ModuleLocation
- data SymbolId = SymbolId {}
- symbolName :: Lens' SymbolId Text
- symbolModule :: Lens' SymbolId ModuleId
- data Position = Position {}
- data Region = Region {}
- region :: Position -> Position -> Region
- regionAt :: Position -> Region
- regionLines :: Region -> Int
- regionStr :: Region -> Text -> Text
- data Location = Location {}
- packageName :: Lens' ModulePackage Text
- packageVersion :: Lens' ModulePackage Text
- package :: Lens' PackageConfig ModulePackage
- packageModules :: Lens' PackageConfig [Text]
- packageExposed :: Lens' PackageConfig Bool
- moduleFile :: Traversal' ModuleLocation Path
- moduleProject :: Traversal' ModuleLocation (Maybe Project)
- moduleInstallDirs :: Traversal' ModuleLocation [Path]
- modulePackage :: Traversal' ModuleLocation ModulePackage
- installedModuleName :: Traversal' ModuleLocation Text
- installedModuleExposed :: Traversal' ModuleLocation Bool
- otherLocationName :: Traversal' ModuleLocation Text
- positionLine :: Lens' Position Int
- positionColumn :: Lens' Position Int
- regionFrom :: Lens' Region Position
- regionTo :: Lens' Region Position
- locationModule :: Lens' Location ModuleLocation
- locationPosition :: Lens' Location (Maybe Position)
- sourceModuleRoot :: Text -> Path -> Path
- importPath :: Text -> Path
- sourceRoot :: ModuleId -> Maybe Path
- sourceRoot_ :: ModuleId -> Path
- class RecalcTabs a where
- module HsDev.PackageDb.Types
Documentation
data ModulePackage Source #
Just package name and version without its location
mkPackage :: Text -> ModulePackage Source #
data PackageConfig Source #
data ModuleLocation Source #
Location of module
locationId :: ModuleLocation -> Text Source #
Symbol
regionLines :: Region -> Int Source #
Location of symbol
sourceModuleRoot :: Text -> Path -> Path Source #
Get source module root directory, i.e. for "...srcFooBar.hs" with module Bar
will return "...src"
sourceRoot :: ModuleId -> Maybe Path Source #
Root of sources, package dir or root directory of standalone modules
sourceRoot_ :: ModuleId -> Path Source #
class RecalcTabs a where Source #
Recalc positions to interpret '\t' as one symbol instead of N
module HsDev.PackageDb.Types