Changes to be committed:

new file:   .gitignore
This commit is contained in:
Michael Wain 2024-10-01 00:32:37 +03:00
parent 02b6980d77
commit b017139995
9 changed files with 20 additions and 3 deletions

2
.gitignore vendored Normal file

@ -0,0 +1,2 @@
.vscode/
dist-newstyle/

@ -1,4 +1,16 @@
module Main where
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle, joinBorders)
import Brick.Widgets.Center (center)
import Brick.Widgets.Border (borderWithLabel, vBorder)
import Brick.Widgets.Border.Style (unicode)
ui :: Widget ()
ui =
newForm $
joinBorders $
withBorderStyle unicode $
borderWithLabel (str "Hello!")
main :: IO ()
main = putStrLn "Hello, Haskell!"
main = simpleMain ui

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

@ -64,6 +64,7 @@ executable freedoc
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
-- Modules included in this executable, other than Main.
-- other-modules:
@ -73,7 +74,9 @@ executable freedoc
-- Other library packages from which modules are imported.
build-depends:
base ^>=4.17.2.1,
brick >= 2.4
brick >= 2.4,
vty >= 6.0,
vty-crossplatform >= 0.4.0.0
-- Directories containing source files.
hs-source-dirs: app