Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Haskell.Stylish
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
- findHaskellFiles :: Bool -> [FilePath] -> IO [FilePath]
- stepName :: Step -> String
- module Language.Haskell.Stylish.Config
- type Verbose = String -> IO ()
- makeVerbose :: Bool -> Verbose
- version :: Version
- format :: ConfigSearchStrategy -> Maybe FilePath -> String -> IO (Either String Lines)
- data ConfigSearchStrategy
- type Lines = [String]
- data Step
Run
Steps
Helpers
findHaskellFiles :: Bool -> [FilePath] -> IO [FilePath] Source #
Searches Haskell source files in any given folder recursively.
Config
Misc
makeVerbose :: Bool -> Verbose Source #
Arguments
:: ConfigSearchStrategy | |
-> Maybe FilePath | the location from which the contents to format were read. If provided, it's going to be printed out in the error message. |
-> String | the contents to format |
-> IO (Either String Lines) |
Formats given contents.
data ConfigSearchStrategy Source #
Constructors
UseConfig FilePath | Don't try to search, just use given config file |
SearchFromDirectory FilePath | Search for |
SearchFromCurrentDirectory | Like SearchFromDirectory, but using current working directory as a starting point |