From 6a24f98bf99962ad6bb2964845a8b93d486df527 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 11:05:32 -0800 Subject: [PATCH 18/34] gnu: Add ghc-optparse-generic. * gnu/packages/haskell-xyz.scm (ghc-optparse-generic): New variable. --- gnu/packages/haskell-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 84427e7661..703875836b 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -8513,6 +8513,42 @@ easily work with command-line options.") easily work with command-line options.") (license license:expat))) +(define-public ghc-optparse-generic + (package + (name "ghc-optparse-generic") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/optparse-generic/optparse-generic-" + version + ".tar.gz")) + (sha256 + (base32 + "13rr3hq26dpmbami8vb6d1ig9ywk6jia22sp5dkp6jkfc1c9k4l0")))) + (build-system haskell-build-system) + (inputs + `(("ghc-system-filepath" ,ghc-system-filepath) + ("ghc-only" ,ghc-only) + ("ghc-optparse-applicative" ,ghc-optparse-applicative) + ("ghc-void" ,ghc-void) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-singletons" ,ghc-singletons) + ("ghc-tagged" ,ghc-tagged) + ("ghc-th-desugar" ,ghc-th-desugar))) + (arguments + `(#:cabal-revision + ("3" + "0vszcjmxywblx5z9yvrz8c6yc104jgr1nv0sbv58ansd3rkjlzfn"))) + (home-page + "http://hackage.haskell.org/package/optparse-generic") + (synopsis + "Auto-generate a command-line parser for your datatype") + (description + "This library auto-generates an optparse-applicative-compatible +@code{Parser} from any data type that derives the @code{Generic} interface.") + (license license:bsd-3))) (define-public ghc-optparse-applicative (package -- 2.25.0