Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- type Extensions = [String]
- data Config = Config {}
- data ExitCodeBehavior
- defaultConfigBytes :: ByteString
- configFilePath :: Verbose -> Maybe FilePath -> IO (Maybe FilePath)
- loadConfig :: Verbose -> Maybe FilePath -> IO Config
- parseConfig :: Value -> Parser 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
findHaskellFiles :: Bool -> [FilePath] -> IO [FilePath] Source #
Searches Haskell source files in any given folder recursively.
Config
type Extensions = [String] Source #
Config | |
|
data ExitCodeBehavior Source #
Instances
Eq ExitCodeBehavior Source # | |
Defined in Language.Haskell.Stylish.Config (==) :: ExitCodeBehavior -> ExitCodeBehavior -> Bool # (/=) :: ExitCodeBehavior -> ExitCodeBehavior -> Bool # | |
Show ExitCodeBehavior Source # | |
Defined in Language.Haskell.Stylish.Config showsPrec :: Int -> ExitCodeBehavior -> ShowS # show :: ExitCodeBehavior -> String # showList :: [ExitCodeBehavior] -> ShowS # |
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 #