horizontal-rule-0.7.0.0: horizontal rule for the terminal
CopyrightCopyright (c) 2019-2024 Travis Cardwell
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

HR.Monad.Terminal

Description

 
Synopsis

MonadTerminal

class Monad m => MonadTerminal m where Source #

Terminal output

Since: 0.5.0.0

Methods

getWidth :: m (Maybe Int) Source #

Get the width of the terminal, if possible

putStrLn :: Text -> m () Source #

Write a string to STDOUT, appending a newline

Instances

Instances details
MonadTerminal IO Source # 
Instance details

Defined in HR.Monad.Terminal