GHC 8.6 stuff (#623)

This is the first version of repline with GHC 8.6 support, but it
comes with some API changes.
This commit is contained in:
quasicomputational 2018-10-05 15:42:54 +01:00 committed by Gabriel Gonzalez
parent 3b3c14b77e
commit fedfa8e41e
6 changed files with 19 additions and 5 deletions

View File

@ -193,7 +193,7 @@ Library
parsers >= 0.12.4 && < 0.13,
prettyprinter >= 1.2.0.1 && < 1.3 ,
prettyprinter-ansi-terminal >= 1.1.1 && < 1.2 ,
repline >= 0.1.6.0 && < 0.2 ,
repline >= 0.2.0.0 && < 0.3 ,
serialise >= 0.2.0.0 && < 0.3 ,
scientific >= 0.3.0.0 && < 0.4 ,
template-haskell < 2.15,
@ -319,7 +319,7 @@ Benchmark deep-nested-large-record
Main-Is: Main.hs
Build-Depends:
base >= 4 && < 5 ,
containers >= 0.5.0.0 && < 0.6,
containers >= 0.5.0.0 && < 0.7,
criterion >= 1.1 && < 1.6,
dhall
Default-Language: Haskell2010

11
nix/repline.nix Normal file
View File

@ -0,0 +1,11 @@
{ mkDerivation, base, containers, haskeline, mtl, process, stdenv
}:
mkDerivation {
pname = "repline";
version = "0.2.0.0";
sha256 = "ecc72092d0340b896ee6bf96bf6645694dbcd33361725a2cd28c5ab5d60c02de";
libraryHaskellDepends = [ base containers haskeline mtl process ];
homepage = "https://github.com/sdiehl/repline";
description = "Haskeline wrapper for GHCi-like REPL interfaces";
license = stdenv.lib.licenses.mit;
}

View File

@ -45,10 +45,11 @@ repl characterSet explain _protocolVersion =
io =
evalStateT
( Repline.evalRepl
""
( pure "" )
( dontCrash . eval )
options
( Repline.Word completer )
Nothing
( Repline.Word completer )
greeter
)
(emptyEnv { characterSet, explain, _protocolVersion })

View File

@ -4,6 +4,7 @@ extra-deps:
- serialise-0.2.0.0
- megaparsec-7.0.0
- parser-combinators-1.0.0
- repline-0.2.0.0
nix:
packages:
- ncurses

View File

@ -16,7 +16,7 @@ extra-deps:
- directory-1.2.7.1
- foundation-0.0.19
- process-1.6.2.0
- repline-0.1.7.0
- repline-0.2.0.0
- haskeline-0.7.4.2
- aeson-1.2.3.0
- th-abstraction-0.2.6.0

View File

@ -1,6 +1,7 @@
resolver: lts-12.4
extra-deps:
- megaparsec-7.0.0@rev:0
- repline-0.2.0.0@rev:0
# Version 0.2.0.0 of cborg, the latest on Hackage, is broken on i386.
- github: well-typed/cborg
commit: master