Fakultas Ilmu Komputer UI

Commit 5db4b3db authored by Sean Gillespie's avatar Sean Gillespie
Browse files

Replace readline with haskeline

 * Use haskeline to alleviate headaches
 * Update to latest lts
parent 92601a23
......@@ -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.Readline (readlineBackend)
import System.Console.Shell.Backend.Haskeline (haskelineBackend)
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) readlineBackend ()
= runShell (mkShellDesc lang eval) haskelineBackend ()
mkShellDesc :: Language
-> (String -> Result String)
......
......@@ -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-readline
, Shellac-haskeline
, base >=4.9 && <5
, lambda-calculator
, optparse-applicative >=0.13
......
......@@ -40,7 +40,7 @@ executables:
- lambda-calculator
- optparse-applicative >=0.13
- Shellac
- Shellac-readline
- Shellac-haskeline
tests:
lambda-calculus-test:
......
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment