stylish-haskell-0.12.2.0: Haskell code prettifier

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Stylish

Contents

Synopsis

Run

Steps

simpleAlign Source #

Arguments

:: Maybe Int

Columns

-> Config 
-> Step 

imports Source #

Arguments

:: Maybe Int

columns

-> Options 
-> Step 

languagePragmas Source #

Arguments

:: Maybe Int

columns

-> Style 
-> Bool

Pad to same length in vertical mode?

-> Bool

remove redundant?

-> String

language prefix

-> Step 

tabs Source #

Arguments

:: Int

number of spaces

-> Step 

unicodeSyntax Source #

Arguments

:: Bool

add language pragma?

-> String

language prefix

-> Step 

Helpers

findHaskellFiles :: Bool -> [FilePath] -> IO [FilePath] Source #

Searches Haskell source files in any given folder recursively.

Config

Misc

type Verbose = String -> IO () 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 #

Constructors

ConfigPath 

type Lines = [String] Source #