stylish-haskell-0.10.0.0: Haskell code prettifier

Safe HaskellNone
LanguageHaskell98

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

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 #