brick/programs/TextWrapDemo.hs
2017-07-06 21:47:41 -07:00

14 lines
382 B
Haskell

module Main where
import Data.Monoid ((<>))
import Brick
ui :: Widget ()
ui = strWrap $ "Hello, world! This line is long enough that " <>
"it's likely to wrap on your terminal if your window " <>
"isn't especially wide. Try narrowing and widening " <>
"the window to see what happens to this text."
main :: IO ()
main = simpleMain ui