This commit introduces dhalli, a fairly minimal Dhall REPL that supports: * Evalution of Dhall expressions along with import resolution * Type inspection of abritrary expressions * Syntax highlighting and pretty printing for output * Persistent bindings with :let * Expression lookup with an implicit "it" binding
37 lines
1.4 KiB
Nix
37 lines
1.4 KiB
Nix
{ mkDerivation, ansi-terminal, ansi-wl-pprint, base
|
|
, base16-bytestring, bytestring, case-insensitive, charset
|
|
, containers, contravariant, cryptohash, deepseq, directory
|
|
, exceptions, filepath, haskeline, http-client, http-client-tls
|
|
, insert-ordered-containers, lens-family-core, mtl
|
|
, optparse-generic, parsers, prettyprinter
|
|
, prettyprinter-ansi-terminal, repline, scientific, stdenv
|
|
, system-filepath, tasty, tasty-hunit, text, text-format
|
|
, transformers, trifecta, unordered-containers, vector
|
|
}:
|
|
mkDerivation {
|
|
pname = "dhall";
|
|
version = "1.9.1";
|
|
src = ./.;
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
ansi-terminal ansi-wl-pprint base base16-bytestring bytestring
|
|
case-insensitive charset containers contravariant cryptohash
|
|
directory exceptions filepath http-client http-client-tls
|
|
insert-ordered-containers lens-family-core parsers prettyprinter
|
|
prettyprinter-ansi-terminal scientific text text-format
|
|
transformers trifecta unordered-containers vector
|
|
];
|
|
executableHaskellDepends = [
|
|
ansi-terminal base containers haskeline mtl optparse-generic
|
|
prettyprinter prettyprinter-ansi-terminal repline system-filepath
|
|
text trifecta
|
|
];
|
|
testHaskellDepends = [
|
|
base containers deepseq insert-ordered-containers prettyprinter
|
|
tasty tasty-hunit text vector
|
|
];
|
|
description = "A configuration language guaranteed to terminate";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
}
|