From aecf5f6e5591938b06a78fe152a06a124cabe36e Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 13 Dec 2019 07:45:59 -0800 Subject: [PATCH 12/22] gnu: Add ghc-aeson-better-errors. * gnu/packages/haskell-web.scm (ghc-aeson-better-errors): New variable. --- gnu/packages/haskell-web.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index cf6e7f4051..a242648d0c 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -971,6 +971,39 @@ the function @code{aesonQQ} that compile-time converts a string representation of a JSON value into a @code{Data.Aeson.Value}.") (license license:expat))) +(define-public ghc-aeson-better-errors + (package + (name "ghc-aeson-better-errors") + (version "0.9.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://hackage/package/aeson-better-errors/aeson-better-errors-" + version + ".tar.gz")) + (sha256 + (base32 + "09vkyrhwak3bmpfsqcd2az8hfqqkxyhg468hv5avgisy0nzh3w38")))) + (build-system haskell-build-system) + (inputs + `(("ghc-aeson" ,ghc-aeson) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-dlist" ,ghc-dlist) + ("ghc-scientific" ,ghc-scientific) + ("ghc-vector" ,ghc-vector) + ("ghc-transformers-compat" ,ghc-transformers-compat) + ("ghc-void" ,ghc-void))) + (home-page + "https://github.com/hdgarrood/aeson-better-errors") + (synopsis + "Better error messages when decoding JSON values in Haskell") + (description + "A small package which gives you the tools to build parsers to decode +JSON values, and gives good error messages when parsing fails. See also +http://harry.garrood.me/blog/aeson-better-errors/.") + (license license:expat))) + (define-public ghc-multipart (package (name "ghc-multipart") -- 2.24.0