Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Formatter
Description
Synopsis
- data Configuration
- defaultConfiguration :: Configuration
- data Error
- isAssertionError :: Error -> Bool
- defaultFormat :: String -> Either Error String
- format :: Configuration -> String -> Either Error String
- createStreamName :: String -> StreamName
- standardInput :: StreamName
- data StreamName
- type Indentation = Int
- data Style
- defaultStyle :: Style
Documentation
data Configuration Source #
Instances
Eq Configuration Source # | |
Defined in Language.Haskell.Formatter.Configuration Methods (==) :: Configuration -> Configuration -> Bool # (/=) :: Configuration -> Configuration -> Bool # | |
Ord Configuration Source # | |
Defined in Language.Haskell.Formatter.Configuration Methods compare :: Configuration -> Configuration -> Ordering # (<) :: Configuration -> Configuration -> Bool # (<=) :: Configuration -> Configuration -> Bool # (>) :: Configuration -> Configuration -> Bool # (>=) :: Configuration -> Configuration -> Bool # max :: Configuration -> Configuration -> Configuration # min :: Configuration -> Configuration -> Configuration # | |
Show Configuration Source # | |
Defined in Language.Haskell.Formatter.Configuration Methods showsPrec :: Int -> Configuration -> ShowS # show :: Configuration -> String # showList :: [Configuration] -> ShowS # |
isAssertionError :: Error -> Bool Source #
createStreamName :: String -> StreamName Source #
Creates a StreamName
. show
is guaranteed to return this string.
show (createStreamName s) == s
standardInput :: StreamName Source #
The standard input stream (stdin).
data StreamName Source #
An informal reference to a data stream. For example, this could be the name of a file stream to be used in error messages.
Instances
Eq StreamName Source # | |
Ord StreamName Source # | |
Defined in Language.Haskell.Formatter.Toolkit.StreamName Methods compare :: StreamName -> StreamName -> Ordering # (<) :: StreamName -> StreamName -> Bool # (<=) :: StreamName -> StreamName -> Bool # (>) :: StreamName -> StreamName -> Bool # (>=) :: StreamName -> StreamName -> Bool # max :: StreamName -> StreamName -> StreamName # min :: StreamName -> StreamName -> StreamName # | |
Show StreamName Source # | |
Defined in Language.Haskell.Formatter.Toolkit.StreamName Methods showsPrec :: Int -> StreamName -> ShowS # show :: StreamName -> String # showList :: [StreamName] -> ShowS # |
type Indentation = Int Source #
Number of characters used to indent.
defaultStyle :: Style Source #