Fixup haddock typos
parent
83b39de3d4
commit
c0ea20455c
|
@ -234,8 +234,8 @@ readConfig path = do
|
||||||
return $ Just fileConf
|
return $ Just fileConf
|
||||||
else return $ Nothing
|
else return $ Nothing
|
||||||
|
|
||||||
-- | Returns a global brittany config file
|
-- | Looks for a user-global config file and return its path.
|
||||||
-- If there is no global config in a system, one will be created
|
-- If there is no global config in a system, one will be created.
|
||||||
userConfigPath :: IO System.IO.FilePath
|
userConfigPath :: IO System.IO.FilePath
|
||||||
userConfigPath = do
|
userConfigPath = do
|
||||||
userBritPathSimple <- Directory.getAppUserDataDirectory "brittany"
|
userBritPathSimple <- Directory.getAppUserDataDirectory "brittany"
|
||||||
|
@ -250,7 +250,7 @@ userConfigPath = do
|
||||||
writeDefaultConfig $ createConfPath
|
writeDefaultConfig $ createConfPath
|
||||||
pure createConfPath
|
pure createConfPath
|
||||||
|
|
||||||
-- | Searhes for a local brittany config path starting from a given directory
|
-- | Searches for a local (per-project) brittany config starting from a given directory
|
||||||
findLocalConfigPath :: System.IO.FilePath -> IO (Maybe System.IO.FilePath)
|
findLocalConfigPath :: System.IO.FilePath -> IO (Maybe System.IO.FilePath)
|
||||||
findLocalConfigPath dir = do
|
findLocalConfigPath dir = do
|
||||||
let dirParts = FilePath.splitDirectories dir
|
let dirParts = FilePath.splitDirectories dir
|
||||||
|
@ -269,7 +269,7 @@ readConfigs cmdlineConfig configPaths = do
|
||||||
return $ cZipWith fromOptionIdentity staticDefaultConfig merged
|
return $ cZipWith fromOptionIdentity staticDefaultConfig merged
|
||||||
|
|
||||||
-- | Reads provided configs
|
-- | Reads provided configs
|
||||||
-- but also applies the user default configuration (with a lowest priority)
|
-- but also applies the user default configuration (with lowest priority)
|
||||||
readConfigsWithUserConfig
|
readConfigsWithUserConfig
|
||||||
:: CConfig Option -- ^ Explicit options, take highest priority
|
:: CConfig Option -- ^ Explicit options, take highest priority
|
||||||
-> [System.IO.FilePath] -- ^ List of config files to load and merge, highest priority first
|
-> [System.IO.FilePath] -- ^ List of config files to load and merge, highest priority first
|
||||||
|
|
Loading…
Reference in New Issue