| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Language.Format
Description
Formatting Swarm language code.
Synopsis
- data FormatInput
- getInput :: FormatInput -> IO Text
- showInput :: FormatInput -> Text
- data FormatOutput
- type FormatWidth = Int
- data FormatConfig = FormatConfig {}
- formatSwarmIO :: FormatConfig -> IO ()
- formatSwarm :: FormatConfig -> Text -> Either Text Text
Documentation
showInput :: FormatInput -> Text Source #
data FormatOutput Source #
Where should the formatted code be output?
Constructors
| Stdout | |
| OutputFile FilePath | |
| Inplace |
type FormatWidth = Int Source #
data FormatConfig Source #
Constructors
| FormatConfig | |
formatSwarmIO :: FormatConfig -> IO () Source #
Validate and format swarm-lang code.
formatSwarm :: FormatConfig -> Text -> Either Text Text Source #