ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

Show all GHC libraries versions?

Open hasufell opened this issue 4 years ago • 6 comments

In GitLab by @maerwald on Feb 24, 2021, 24:09

related https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/88

hasufell avatar Feb 23 '21 16:02 hasufell

https://github.com/haskell/ghcup-hs/issues/98

hasufell avatar Dec 20 '22 13:12 hasufell

Discussion on discourse: https://discourse.haskell.org/t/ghc-9-6-5-is-now-available/9341/16?u=hasufell

A special case may be that Win32 and unix are platform specific packages.

hasufell avatar Apr 25 '24 15:04 hasufell

Might also be interesting how to incorporate this in the TUI. Maybe @lsmor has an idea.

hasufell avatar Apr 25 '24 15:04 hasufell

I wonder how this would look in the TUI. I think current display of the tools is minimal and pretty much optimal. Nevertheless, having the option to extend the visualization might be good. Two questions arises:

  • How to display the new info?, maybe a popup, or a dropdown list?
  • How to trigger the new display? a new hotkey? a configurable option?

lsmor avatar Apr 26 '24 19:04 lsmor

How to display the new info?, maybe a popup, or a dropdown list?

I'm tilting towards popup. An inspect/details action that we can extend with various sub-options like showing the exact bindist that would be selected etc

We just have to make sure to not overload everything. The navigation has to be simple.

Press enter brings you to a popup menu that mimics the options of install/compile/details. Then we go from there.

hasufell avatar Apr 27 '24 05:04 hasufell

Oh, I see. We can add a new buttom in the "context menu" (#949) with the "details". It wouldn't be too difficult to implement, since it seems it would only be a static popup with information.

So, this isn't implemented in the ghcup library yet, isn't it?. I guess, the only friction points would be the changes in the ListResult type.

lsmor avatar Apr 27 '24 10:04 lsmor