Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ari Angga Nugraha
ariangganugraha-funpro2020-lambda
Commits
5db4b3db
Commit
5db4b3db
authored
Jan 17, 2018
by
Sean Gillespie
Browse files
Replace readline with haskeline
* Use haskeline to alleviate headaches * Update to latest lts
parent
92601a23
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Main.hs
View file @
5db4b3db
...
...
@@ -6,7 +6,7 @@ import Data.Semigroup
import
Options.Applicative
hiding
(
ParseError
)
import
System.Console.Shell
import
System.Console.Shell.ShellMonad
import
System.Console.Shell.Backend.
Read
line
(
read
lineBackend
)
import
System.Console.Shell.Backend.
Haske
line
(
haske
lineBackend
)
import
qualified
Paths_lambda_calculator
as
P
...
...
@@ -73,7 +73,7 @@ cliParser = CliOptions
runShell'
::
CliOptions
->
IO
()
runShell'
CliOptions
{
version
=
True
}
=
putStrLn
version'
runShell'
CliOptions
{
language
=
Eval
lang
eval
}
=
runShell
(
mkShellDesc
lang
eval
)
read
lineBackend
()
=
runShell
(
mkShellDesc
lang
eval
)
haske
lineBackend
()
mkShellDesc
::
Language
->
(
String
->
Result
String
)
...
...
lambda-calculator.cabal
View file @
5db4b3db
...
...
@@ -2,7 +2,7 @@
--
-- see: https://github.com/sol/hpack
--
-- hash:
9a56fe4c7e5a1adfc4da3434edc5d4540a51680a8c8023849d39866eb7602ccb
-- hash:
797b677552c81b80399ac8b69e2e398479887a332862d9878a7c508a259975ee
name: lambda-calculator
version: 2.0.0
...
...
@@ -53,7 +53,7 @@ executable lambda-calculator
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
Shellac
, Shellac-
read
line
, Shellac-
haske
line
, base >=4.9 && <5
, lambda-calculator
, optparse-applicative >=0.13
...
...
package.yaml
View file @
5db4b3db
...
...
@@ -40,7 +40,7 @@ executables:
-
lambda-calculator
-
optparse-applicative >=0.13
-
Shellac
-
Shellac-
read
line
-
Shellac-
haske
line
tests
:
lambda-calculus-test
:
...
...
stack.yaml
View file @
5db4b3db
flags
:
{}
extra-package-dbs
:
[]
resolver
:
lts-10.3
packages
:
-
'
.'
-
'
.'
extra-deps
:
-
Shellac-0.9.9
-
Shellac-readline-0.9.9
-
readline-1.0.3.0
resolver
:
lts-10.0
-
Shellac-0.9.9
-
Shellac-haskeline-0.2.1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment