Copyright | (c) Maciej Bendkowski 2017-2018 |
---|---|
License | BSD3 |
Maintainer | maciej.bendkowski@tcs.uj.edu.pl |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.Boltzmann.Internal.Utils
Description
General utilities for boltzmann-brain.
Documentation
ensureLn :: String -> String Source #
Given a string, ensures that it ends with a newline character, appending it if needed.
closest :: [String] -> String -> String Source #
Given a non-empty list of distinct strings, finds the closest (in terms of editing distance) string to the given one.
bold :: String -> IO String Source #
Given a string, outputs its bold variant (assuming that the terminal supports it)
italic :: String -> IO String Source #
Given a string, outputs its italic variant (assuming that the terminal supports it)
underline :: String -> IO String Source #
Given a string, outputs its underlined variant (assuming that the terminal supports it)