Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b2de991
Add some
dfordivam Apr 3, 2025
3dd3e16
Add BaseWidget and BasicOverlay
dfordivam Apr 3, 2025
de21c55
Rename type, remove import of Navigation
dfordivam Apr 3, 2025
9293f1c
wip App Navigation
dfordivam Apr 3, 2025
dfd3265
Move app specific common code to separate module
dfordivam Apr 3, 2025
11b041e
wip Fix import
dfordivam Apr 3, 2025
7cfa10a
Add drawNav
dfordivam Apr 4, 2025
003f145
wip, nav section list working
dfordivam Apr 7, 2025
b572a7c
Add Tutorial and KeyInfo
dfordivam Apr 7, 2025
b774b3f
MenuKeyBindings in Common
dfordivam Apr 7, 2025
09bb656
Use nonempty
dfordivam Apr 7, 2025
f783bfb
init ContextMenu
dfordivam Apr 7, 2025
ec9ab32
InputField Class + instances
dfordivam Apr 7, 2025
312927f
add drawInputField
dfordivam Apr 7, 2025
1b425ef
CheckBox InputField
dfordivam Apr 7, 2025
74f74d0
Add some code from Menu to Common
dfordivam Apr 7, 2025
d2592f6
pass name also to amplifier fn
dfordivam Apr 8, 2025
06507ca
EditInput widget
dfordivam Apr 8, 2025
e7f956f
Fix edit input draw
dfordivam Apr 8, 2025
ed16b1b
minor refactor
dfordivam Apr 8, 2025
2f49d8c
Add SelectInput
dfordivam Apr 8, 2025
c90355d
smallerOverlayLayer
dfordivam Apr 8, 2025
4dbde1d
use list
dfordivam Apr 8, 2025
a325ca8
Fix instance, drawFieldInput
dfordivam Apr 8, 2025
0983a43
refactor get value apis
dfordivam Apr 13, 2025
65ea1aa
GenericMenu widget
dfordivam Apr 13, 2025
49283ed
Multi select with editable
dfordivam Apr 15, 2025
2287e7b
Split api
dfordivam Apr 16, 2025
dd812b2
Include state in GenericMenu, to be used for submitAction
dfordivam Apr 16, 2025
d9cc643
SelectInput updateItems api
dfordivam Apr 17, 2025
b405e6d
Implement ContextMenu, CompileGHC/HLS, AdvanceInstall Menus
dfordivam Apr 17, 2025
01df764
Add new modules to cabal
dfordivam Apr 17, 2025
856a955
Remove GHCup.Brick.App module
dfordivam Apr 17, 2025
1737139
Remove old tui modules and code
dfordivam Apr 17, 2025
293f253
Improve select input field's edit input view and behaviour
dfordivam Apr 17, 2025
9e444bc
Remove the use of global IORef; cleanup code
dfordivam Apr 18, 2025
58236f8
Remove dead code
dfordivam Apr 18, 2025
cefdbce
Remove some unnecessary pragmas
dfordivam Apr 18, 2025
529fd4a
Add comments to tui Widgets
dfordivam Apr 21, 2025
f1c8923
remove unused param
dfordivam Apr 21, 2025
3f83f82
Remove redundant input 'title', use label
dfordivam Apr 21, 2025
b48e63e
update advance install menu state also
dfordivam Apr 21, 2025
9ee3ed3
Add import, fix build with 9.6
dfordivam Apr 23, 2025
8bcc151
Add overlay in GenericMenu
dfordivam Apr 28, 2025
f9735ba
Submit Action provides return value
dfordivam Apr 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions ghcup.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -371,18 +371,24 @@ library ghcup-tui
import: app-common-depends
exposed-modules:
GHCup.BrickMain
GHCup.Brick.Widgets.Navigation
GHCup.Brick.Widgets.Tutorial
GHCup.Brick.Widgets.KeyInfo
GHCup.Brick.Widgets.BaseWidget
GHCup.Brick.Widgets.BasicOverlay
GHCup.Brick.Widgets.SectionList
GHCup.Brick.Widgets.Menu
GHCup.Brick.Widgets.Menus.Context
GHCup.Brick.Widgets.Menus.AdvanceInstall
GHCup.Brick.Widgets.Menus.CompileGHC
GHCup.Brick.Widgets.Menus.CompileHLS
GHCup.Brick.Widgets.GenericMenu
GHCup.Brick.Widgets.InputField.Class
GHCup.Brick.Widgets.InputField.CheckBox
GHCup.Brick.Widgets.InputField.EditInput
GHCup.Brick.Widgets.InputField.SelectInput
GHCup.Brick.Actions
GHCup.Brick.App
GHCup.Brick.BrickState
GHCup.Brick.App.Common
GHCup.Brick.App.AdvanceInstallOptions
GHCup.Brick.App.AdvanceInstallMenu
GHCup.Brick.App.CompileGHCMenu
GHCup.Brick.App.CompileHLSMenu
GHCup.Brick.App.ContextMenu
GHCup.Brick.App.Navigation
GHCup.Brick.App.KeyInfo
GHCup.Brick.App.Tutorial
GHCup.Brick.Attributes
GHCup.Brick.Common

Expand All @@ -400,6 +406,7 @@ library ghcup-tui

build-depends:
, ghcup
, some
, brick >=2.1 && <2.8
, vty ^>=6.0 || ^>=6.1 || ^>=6.2

Expand Down
417 changes: 63 additions & 354 deletions lib-tui/GHCup/Brick/Actions.hs

Large diffs are not rendered by default.

195 changes: 0 additions & 195 deletions lib-tui/GHCup/Brick/App.hs

This file was deleted.

Loading
Loading