From mboxrd@z Thu Jan 1 00:00:00 1970 From: rsiddharth Subject: [PATCH] gnu: Add ghc-hslogger. Date: Sat, 11 Feb 2017 20:35:05 +0000 Message-ID: <20170211203505.10427-1-s@ricketyspace.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cceOG-0007nE-5m for guix-devel@gnu.org; Sat, 11 Feb 2017 15:35:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cceOC-0002Cq-8M for guix-devel@gnu.org; Sat, 11 Feb 2017 15:35:28 -0500 Received: from ricketyspace.net ([45.55.79.15]:56876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cceOC-0002C7-43 for guix-devel@gnu.org; Sat, 11 Feb 2017 15:35:24 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: rsiddharth * gnu/packages/haskell.scm (ghc-hslogger): New variable. --- gnu/packages/haskell.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 37e35c45f..f0800b4dc 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -8168,4 +8168,33 @@ Rust syntax. It is intended to be useful for two different purposes: files in Haskell.") (license license:bsd-3))) +(define-public ghc-hslogger + (package + (name "ghc-hslogger") + (version "1.2.10") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/" + "hslogger-" version "/" "hslogger-" + version ".tar.gz")) + (sha256 (base32 + "0as5gvlh6pi2gflakp695qnlizyyp059dqrhvjl4gjxalja6xjnp")))) + (build-system haskell-build-system) + (inputs + `(("ghc-mtl" ,ghc-mtl) + ("ghc-network" ,ghc-network) + ("ghc-directory", ghc-directory) + ("ghc-old-locale" ,ghc-old-locale) + ("ghc-process" ,ghc-process))) + (native-inputs + `(("ghc-hunit" ,ghc-hunit))) + (home-page "http://software.complete.org/hslogger") + (synopsis "Logging framework for Haskell, similar to Python's logging module") + (description "Lets each log message have a priority and +source be associated with it. The programmer can then define global +handlers that route or filter messages based on the priority and +source. It also has a syslog handler built in.") + (license license:bsd-3))) + ;;; haskell.scm ends here -- 2.11.0