Create a brick tui
Brick is a terminal ui: https://hackage.haskell.org/package/brick
It shouldn't be hard. The main view would be equivalent to ghcup list
and allow easier interaction per item.
@jtdaugherty wdyt?
Brick is a terminal ui: https://hackage.haskell.org/package/brick
It shouldn't be hard. The main view would be equivalent to ghcup list
and allow easier interaction per item.
@jtdaugherty wdyt?
added typeimprovement + 1 deleted label
changed the description
Awesome idea! Then again, I have a certain bias on this question.
Yes, I think this is 100% feasible and would make a nice alternative to the current interface (although keeping the current interface makes ghcup
easier to use in a scripting context, which I would think is important).
I am happy to be available for support via tickets and email if you tackle this. There is extensive documentation in the Brick library (not just Haddock; see the User Guide) as well as a large collection of demo programs.
Something you might want to consider: brick
(via vty
) is not compatible with (or supported on) Windows.
(That could just mean you conditionally compile that out on Windows; another reason to keep the non-TUI implementation.)
ghcup currently has zero windows support. It heavily relies on unix. Windows is just too much of a different platform, imo. There's also discussion at ghc/ghc#18104
mentioned in commit ef2ee901
mentioned in merge request !20 (merged)
mentioned in commit 618a0548
mentioned in commit da94fa5f
closed