| Maintainer | ongy |
|---|---|
| Stability | testing |
| Portability | Linux |
| Safe Haskell | None |
| Language | Haskell2010 |
Monky.Outputs.Fallback
Description
- data WrapOuts
- getFallbackOut :: MonkyOutput a => IO a -> IO WrapOuts
- chooseTerminalOut :: IO WrapOuts
Documentation
The datatype for wrapping outher outputs
Instances
Arguments
| :: MonkyOutput a | |
| => IO a | The output to use for non-terminal mode |
| -> IO WrapOuts |
Wrapper for normal outputs that tries to find the best output
This function will check if stdout is a terminal and switch to AsciiOut or UTf8Out depending on the locale
chooseTerminalOut :: IO WrapOuts Source #
Lowerlevel access to guess which terminal out to use based on system encoding