This raises the lower bound on prettyprinter to 1.5.1 since `removeTrailingWhitespace` is buggy in earlier versions. This jailbreaks hnix, which isn't compatible with prettyprinter-1.5.1 yet. Fixes #183, #1400, #1525. Co-authored-by: Gabriel Gonzalez <Gabriel439@gmail.com>
25 lines
890 B
Nix
25 lines
890 B
Nix
{ mkDerivation, ansi-wl-pprint, base, base-compat, bytestring
|
|
, containers, criterion, deepseq, doctest, mtl, pgp-wordlist
|
|
, QuickCheck, random, stdenv, tasty, tasty-hunit, tasty-quickcheck
|
|
, text, transformers
|
|
}:
|
|
mkDerivation {
|
|
pname = "prettyprinter";
|
|
version = "1.5.1";
|
|
sha256 = "fb66b498cdd46aa7f36abdaf0b49e88444a3e6ed9d04bec8924ed6355f393794";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [ base text ];
|
|
testHaskellDepends = [
|
|
base bytestring doctest pgp-wordlist QuickCheck tasty tasty-hunit
|
|
tasty-quickcheck text
|
|
];
|
|
benchmarkHaskellDepends = [
|
|
ansi-wl-pprint base base-compat containers criterion deepseq mtl
|
|
QuickCheck random text transformers
|
|
];
|
|
homepage = "http://github.com/quchen/prettyprinter";
|
|
description = "A modern, easy to use, well-documented, extensible pretty-printer";
|
|
license = stdenv.lib.licenses.bsd2;
|
|
}
|