File tree 1 file changed +6
-9
lines changed 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 3
3
4
4
module Main where
5
5
6
- import Data.Foldable (asum )
7
- import Data.Text (
8
- Text ,
9
- pack ,
10
- )
11
- import Data.Text.IO qualified as Text
12
- import GitHash
6
+ import qualified Data.Foldable
7
+ import Data.Text (Text , pack )
8
+ import qualified Data.Text.IO as Text
9
+ import GitHash (giBranch , giHash , tGitInfoCwdTry )
13
10
import Options.Applicative
14
11
import Swarm.App (appMain )
15
12
import Swarm.DocGen (EditorType (.. ), GenerateDocs (.. ), generateDocs )
16
13
import Swarm.Language.LSP (lspMain )
17
14
import Swarm.Language.Pipeline (processTerm )
18
- import System.Exit
15
+ import System.Exit ( exitFailure , exitSuccess )
19
16
20
17
data CLI
21
18
= Run
@@ -50,7 +47,7 @@ cliParser =
50
47
]
51
48
editor :: Parser (Maybe EditorType )
52
49
editor =
53
- asum
50
+ Data.Foldable. asum
54
51
[ pure Nothing
55
52
, Just VSCode <$ switch (long " code" <> help " Generate for the VS Code editor" )
56
53
, Just EMacs <$ switch (long " emacs" <> help " Generate for the EMacs editor" )
You can’t perform that action at this time.
0 commit comments