Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ModulePackage = ModulePackage {}
- data ModuleLocation
- = FileModule { }
- | CabalModule { }
- | 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)
- moduleCabal :: Traversal' ModuleLocation Cabal
- 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.Cabal
Documentation
data ModulePackage Source
data ModuleLocation Source
Location of module
locationId :: ModuleLocation -> String Source
regionLines :: Region -> Int Source
Location of symbol
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
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
module HsDev.Cabal