hsdev-0.3.1.3: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.Symbols.Location

Synopsis

Documentation

data ModulePackage Source #

Just package name and version without its location

Constructors

ModulePackage 

data ModuleLocation Source #

Location of module

Instances

Eq ModuleLocation Source # 
Ord ModuleLocation Source # 
Show ModuleLocation Source # 
Show InspectedModule # 
NFData ModuleLocation Source # 

Methods

rnf :: ModuleLocation -> () #

ToJSON ModuleLocation Source # 
FromJSON ModuleLocation Source # 
Formattable ModuleLocation Source # 
Paths ModuleLocation Source # 
Display ModuleLocation Source # 
Documented ModuleLocation Source # 
EnumContents ModuleLocation Source # 
EnumContents (Extensions ModuleLocation) Source # 
Monad m => MonadWriter [ModuleLocation] (UpdateM m) # 

Methods

writer :: (a, [ModuleLocation]) -> UpdateM m a #

tell :: [ModuleLocation] -> UpdateM m () #

listen :: UpdateM m a -> UpdateM m (a, [ModuleLocation]) #

pass :: UpdateM m (a, [ModuleLocation] -> [ModuleLocation]) -> UpdateM m a #

regionStr :: Region -> Text -> Text Source #

Get string at region

sourceModuleRoot :: Text -> Path -> Path Source #

Get source module root directory, i.e. for "...srcFooBar.hs" with module Bar will return "...src"

importPath :: Text -> Path Source #

Path to module source >importPath Quux.Blah = "Quux/Blah.hs"

sourceRoot :: ModuleId -> Maybe Path Source #

Root of sources, package dir or root directory of standalone modules

class RecalcTabs a where Source #

Recalc positions to interpret '\t' as one symbol instead of N

Minimal complete definition

recalcTabs, calcTabs

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