File tree 13 files changed +1442
-1
lines changed
13 files changed +1442
-1
lines changed Original file line number Diff line number Diff line change 11
11
module Main where
12
12
13
13
#if defined(BRICK)
14
- import BrickMain ( brickMain )
14
+ -- import BrickMain ( brickMain )
15
+ import GHCup.BrickMain (brickMain )
15
16
#endif
16
17
17
18
import qualified GHCup.GHC as GHC
Original file line number Diff line number Diff line change @@ -322,6 +322,57 @@ library ghcup-optparse
322
322
else
323
323
build-depends : unix ^>= 2.7 || ^>= 2.8
324
324
325
+ library ghcup-tui
326
+ import : app-common-depends
327
+ exposed-modules :
328
+ GHCup.BrickMain
329
+ GHCup.Brick.Widgets.Navigation
330
+ GHCup.Brick.Widgets.Tutorial
331
+ GHCup.Brick.Widgets.KeyInfo
332
+ GHCup.Brick.Widgets.SectionList
333
+ GHCup.Brick.Actions
334
+ GHCup.Brick.App
335
+ GHCup.Brick.BrickState
336
+ GHCup.Brick.Attributes
337
+ GHCup.Brick.Common
338
+
339
+ hs-source-dirs : lib-tui
340
+ default-language : Haskell2010
341
+ default-extensions :
342
+ LambdaCase
343
+ MultiWayIf
344
+ NamedFieldPuns
345
+ PackageImports
346
+ RecordWildCards
347
+ ScopedTypeVariables
348
+ StrictData
349
+ TupleSections
350
+
351
+ ghc-options :
352
+ -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
353
+ -fwarn-incomplete-record-updates
354
+
355
+ build-depends :
356
+ , ghcup
357
+ , ghcup-optparse
358
+ , optics ^>= 0.4
359
+ , brick ^>= 2.1
360
+ , transformers ^>= 0.5
361
+ , vty ^>= 6.0
362
+ , optics ^>= 0.4
363
+
364
+ if flag(internal-downloader)
365
+ cpp-options : -DINTERNAL_DOWNLOADER
366
+
367
+ if flag(tui)
368
+ cpp-options : -DBRICK
369
+
370
+ if os(windows)
371
+ cpp-options : -DIS_WINDOWS
372
+
373
+ else
374
+ build-depends : unix ^>= 2.7
375
+
325
376
executable ghcup
326
377
import : app-common-depends
327
378
main-is : Main.hs
@@ -345,6 +396,7 @@ executable ghcup
345
396
build-depends :
346
397
, ghcup
347
398
, ghcup-optparse
399
+ , ghcup-tui
348
400
349
401
if flag(internal-downloader)
350
402
cpp-options : -DINTERNAL_DOWNLOADER
Original file line number Diff line number Diff line change 2
2
cabal :
3
3
- component : " ghcup:lib:ghcup"
4
4
path : ./lib
5
+ - component : " ghcup:lib:ghcup-optparse"
6
+ path : ./lib-opt
7
+ - component : " ghcup:lib:ghcup-tui"
8
+ path : ./lib-tui
5
9
- component : " ghcup:exe:ghcup"
6
10
path : ./app/ghcup
7
11
- component : " ghcup:lib:ghcup-optparse"
You can’t perform that action at this time.
0 commit comments