Merge pull request #131 from gren-lang/slim-repl

Slim repl
This commit is contained in:
Robin Heggelund Hansen 2022-09-13 08:12:16 +02:00 committed by GitHub
commit 72f0ec2df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ printWelcomeMessage =
in D.toAnsi IO.stdout $
D.vcat
[ D.black "----" <+> D.dullcyan title <+> D.black (D.fromChars dashes),
D.black $ D.fromChars $ "Say :help for help and :exit to exit! More at " <> D.makeLink "repl",
D.black $ D.fromChars $ "Say :help for help and :exit to exit!",
D.black "--------------------------------------------------------------------------------",
D.empty
]
@ -502,11 +502,7 @@ genericHelpMessage =
\\n\
\ :exit Exit the REPL\n\
\ :help Show this information\n\
\ :reset Clear all previous imports and definitions\n\
\\n\
\More info at "
++ D.makeLink "repl"
++ "\n"
\ :reset Clear all previous imports and definitions\n"
-- GET ROOT
@ -540,15 +536,13 @@ getRoot =
(Outline.ExposedList [])
compatibleDeps
C.defaultGren
Platform.Browser
Platform.Common
return root
defaultDeps :: [Pkg.Name]
defaultDeps =
[ Pkg.core,
Pkg.browser
]
[Pkg.core]
-- GET INTERPRETER