Safe Haskell | None |
---|---|
Language | Haskell98 |
HsDev.Symbols.Location
Synopsis
- 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
Constructors
ModulePackage | |
Fields
|
Instances
mkPackage :: Text -> ModulePackage Source #
data PackageConfig Source #
Constructors
PackageConfig | |
Fields
|
Instances
data ModuleLocation Source #
Location of module
Constructors
FileModule | |
Fields | |
InstalledModule | |
Fields | |
OtherLocation | |
Fields | |
NoLocation |
Instances
locationId :: ModuleLocation -> Text Source #
Constructors
ModuleId | |
Fields |
Instances
Eq ModuleId Source # | |
Ord ModuleId Source # | |
Defined in HsDev.Symbols.Location | |
Show ModuleId Source # | |
NFData ModuleId Source # | |
Defined in HsDev.Symbols.Location | |
ToJSON ModuleId Source # | |
Defined in HsDev.Symbols.Location | |
FromJSON ModuleId Source # | |
FromRow ModuleId Source # | |
Defined in HsDev.Database.SQLite.Instances | |
ToRow ModuleId Source # | |
Defined in HsDev.Database.SQLite.Instances | |
Sourced ModuleId Source # | |
Defined in HsDev.Symbols.Class | |
Documented ModuleId Source # | |
Symbol
Constructors
SymbolId | |
Fields
|
Instances
Eq SymbolId Source # | |
Ord SymbolId Source # | |
Defined in HsDev.Symbols.Location | |
Show SymbolId Source # | |
NFData SymbolId Source # | |
Defined in HsDev.Symbols.Location | |
ToJSON SymbolId Source # | |
Defined in HsDev.Symbols.Location | |
FromJSON SymbolId Source # | |
FromRow SymbolId Source # | |
Defined in HsDev.Database.SQLite.Instances | |
ToRow SymbolId Source # | |
Defined in HsDev.Database.SQLite.Instances | |
Sourced SymbolId Source # | |
Defined in HsDev.Symbols.Class | |
Documented SymbolId Source # | |
Constructors
Position | |
Fields
|
Instances
Eq Position Source # | |
Ord Position Source # | |
Defined in HsDev.Symbols.Location | |
Read Position Source # | |
Show Position Source # | |
NFData Position Source # | |
Defined in HsDev.Symbols.Location | |
ToJSON Position Source # | |
Defined in HsDev.Symbols.Location | |
FromJSON Position Source # | |
FromRow Position Source # | |
Defined in HsDev.Database.SQLite.Instances | |
ToRow Position Source # | |
Defined in HsDev.Database.SQLite.Instances | |
RecalcTabs Position Source # | |
Constructors
Region | |
Fields
|
Instances
Eq Region Source # | |
Ord Region Source # | |
Read Region Source # | |
Show Region Source # | |
NFData Region Source # | |
Defined in HsDev.Symbols.Location | |
ToJSON Region Source # | |
Defined in HsDev.Symbols.Location | |
FromJSON Region Source # | |
FromRow Region Source # | |
Defined in HsDev.Database.SQLite.Instances | |
ToRow Region Source # | |
Defined in HsDev.Database.SQLite.Instances | |
RecalcTabs Region Source # | |
regionLines :: Region -> Int Source #
Location of symbol
Constructors
Location | |
Fields |
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
Methods
recalcTabs :: Text -> Int -> a -> a Source #
Interpret '\t' as one symbol instead of N
calcTabs :: Text -> Int -> a -> a Source #
Inverse of recalcTabs
: interpret '\t' as N symbols instead of 1
Instances
RecalcTabs Position Source # | |
RecalcTabs Region Source # | |
RecalcTabs (Note a) Source # | |
module HsDev.PackageDb.Types