Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- runSteps :: Extensions -> Maybe FilePath -> [Step] -> Lines -> Either String Lines
- simpleAlign :: Maybe Int -> Config -> Step
- imports :: Maybe Int -> Options -> Step
- languagePragmas :: Maybe Int -> Style -> Bool -> Bool -> String -> Step
- tabs :: Int -> Step
- trailingWhitespace :: Step
- unicodeSyntax :: Bool -> String -> Step
- stepName :: Step -> String
- type Extensions = [String]
- data Config = Config {
- configSteps :: [Step]
- configIndent :: Int
- configColumns :: Maybe Int
- configLanguageExtensions :: [String]
- configNewline :: Newline
- configCabal :: Bool
- defaultConfigBytes :: ByteString
- configFilePath :: Verbose -> Maybe FilePath -> IO (Maybe FilePath)
- loadConfig :: Verbose -> Maybe FilePath -> IO Config
- type Verbose = String -> IO ()
- makeVerbose :: Bool -> Verbose
- version :: Version
- format :: Maybe ConfigPath -> Maybe FilePath -> String -> IO (Either String Lines)
- newtype ConfigPath = ConfigPath {}
- type Lines = [String]
- data Step
Run
Steps
Helpers
Config
type Extensions = [String] Source #
Config | |
|
Misc
makeVerbose :: Bool -> Verbose Source #
format :: Maybe ConfigPath -> Maybe FilePath -> String -> IO (Either String Lines) Source #
Formats given contents optionally using the config provided as first param. The second file path is the location from which the contents were read. If provided, it's going to be printed out in the error message.
newtype ConfigPath Source #