stylish-haskell-0.5.0.2: Haskell code prettifier

Safe HaskellNone

Language.Haskell.Stylish

Contents

Synopsis

Run

runSteps :: Extensions -> Maybe FilePath -> [Step] -> Lines -> Either String LinesSource

Steps

importsSource

Arguments

:: Int

columns

-> Align 
-> Step 

languagePragmasSource

Arguments

:: Int

columns

-> Style 
-> Bool

remove redundant?

-> Step 

tabsSource

Arguments

:: Int

number of spaces

-> Step 

unicodeSyntaxSource

Arguments

:: Bool

add language pragma?

-> Step 

Data types

data Align Source

Constructors

Global 
Group 
None 

Instances

Eq Align 
Show Align 

data Style Source

Constructors

Vertical 
Compact 

Instances

Eq Style 
Show Style 

Helpers

stepName :: Step -> StringSource

Config

type Extensions = [String]Source

data Config Source

Constructors

Config 

Fields

configSteps :: [Step]
 
configColumns :: Int
 
configLanguageExtensions :: [String]
 

Instances

configFilePath :: Verbose -> Maybe FilePath -> IO (Maybe FilePath)Source

loadConfig :: Verbose -> Maybe FilePath -> IO ConfigSource

Misc

type Verbose = String -> IO ()Source

version :: VersionSource

type Lines = [String]Source