Safe Haskell | None |
---|---|
Language | Haskell98 |
HsDev.Symbols.Location
- data ModulePackage = ModulePackage {}
- data ModuleLocation
- = FileModule { }
- | InstalledModule { }
- | ModuleSource { }
- moduleStandalone :: ModuleLocation -> Bool
- locationId :: ModuleLocation -> String
- noLocation :: ModuleLocation
- data Position = Position {}
- data Region = Region {}
- region :: Position -> Position -> Region
- regionAt :: Position -> Region
- regionLines :: Region -> Int
- regionStr :: Region -> String -> String
- data Location = Location {}
- packageName :: Lens' ModulePackage String
- packageVersion :: Lens' ModulePackage String
- moduleFile :: Traversal' ModuleLocation FilePath
- moduleProject :: Traversal' ModuleLocation (Maybe Project)
- modulePackageDb :: Traversal' ModuleLocation PackageDb
- modulePackage :: Traversal' ModuleLocation (Maybe ModulePackage)
- cabalModuleName :: Traversal' ModuleLocation String
- moduleSourceName :: Traversal' ModuleLocation (Maybe String)
- 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 -> FilePath -> FilePath
- importedModulePath :: Text -> FilePath -> Text -> FilePath
- packageOpt :: Maybe ModulePackage -> [String]
- class RecalcTabs a where
- module HsDev.PackageDb
Documentation
data ModulePackage Source
Just package name and version without its location
Constructors
ModulePackage | |
Fields |
data ModuleLocation Source
Location of module
Constructors
FileModule | |
Fields | |
InstalledModule | |
Fields | |
ModuleSource | |
Fields |
Instances
locationId :: ModuleLocation -> String Source
Constructors
Position | |
Fields
|
Constructors
Region | |
Fields
|
regionLines :: Region -> Int Source
Location of symbol
Constructors
Location | |
Fields |
sourceModuleRoot :: Text -> FilePath -> FilePath Source
Get source module root directory, i.e. for "...srcFooBar.hs" with module Bar
will return "...src"
packageOpt :: Maybe ModulePackage -> [String] Source
class RecalcTabs a where Source
Recalc positions to interpret '\t' as one symbol instead of N
Methods
recalcTabs :: String -> Int -> a -> a Source
Interpret '\t' as one symbol instead of N
calcTabs :: String -> Int -> a -> a Source
Inverse of recalcTabs
: interpret '\t' as N symbols instead of 1
Instances
module HsDev.PackageDb