From patchwork Wed Dec 4 07:04:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Leung X-Patchwork-Id: 16371 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 44AE71783D; Wed, 4 Dec 2019 07:06:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 047C1177BF for ; Wed, 4 Dec 2019 07:06:40 +0000 (GMT) Received: from localhost ([::1]:34672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icOkB-0005Fb-CF for patchwork@mira.cbaines.net; Wed, 04 Dec 2019 02:06:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icOjt-0005Dl-Do for guix-patches@gnu.org; Wed, 04 Dec 2019 02:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icOjo-0004X4-5P for guix-patches@gnu.org; Wed, 04 Dec 2019 02:06:19 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icOja-0004Tw-7h for guix-patches@gnu.org; Wed, 04 Dec 2019 02:06:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icOja-00057I-2H for guix-patches@gnu.org; Wed, 04 Dec 2019 02:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38487] [PATCH] Add ghc-apply-refact Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Dec 2019 07:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38487 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38487@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157544314619641 (code B ref -1); Wed, 04 Dec 2019 07:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Dec 2019 07:05:46 +0000 Received: from localhost ([127.0.0.1]:41363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icOjK-00056j-0F for submit@debbugs.gnu.org; Wed, 04 Dec 2019 02:05:46 -0500 Received: from lists.gnu.org ([209.51.188.17]:53966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icOjI-00056c-KQ for submit@debbugs.gnu.org; Wed, 04 Dec 2019 02:05:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43570) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icOjH-000596-Bp for guix-patches@gnu.org; Wed, 04 Dec 2019 02:05:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icOjE-0003UX-6l for guix-patches@gnu.org; Wed, 04 Dec 2019 02:05:42 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:45529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icOjD-0003RS-Cw for guix-patches@gnu.org; Wed, 04 Dec 2019 02:05:40 -0500 Received: by mail-qk1-x732.google.com with SMTP id x1so6116302qkl.12 for ; Tue, 03 Dec 2019 23:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xLXZ4jzomgSSXjTBE3qHM3OXOvJZ/Gf0mwRVE4WfgPs=; b=BkEPUVRQRANg5IbHaYUBibWVyoOVCO0ArvWMcjOnu6wVJIrWCquPA5cOaRe0T0wfGE V+vPcF095XyyVecS51Zt6HkqFXAK3I8qUxPW10Fygtx3Zb1XdyaI0eHLa6s8Zcnh1Wi0 RR7/1W6WVbjm3i/nOVwQHNFmESGztckfieG7qD1aQ+vLNq4F55/iO+yS9M2uCm4pf7As VhHz+1h0z8FI/Qa1sy1PIC76dPkuAvbcD7tM9Kso86P8KP0u1VFfy/xeR6QmAhtqhjyN o4R1/HyoMIuUB3Vm1b2+gLVSk8/bwZ50vCZziDgXkFohXYpu09+xA6SafRh/kH0OMSNu pHDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xLXZ4jzomgSSXjTBE3qHM3OXOvJZ/Gf0mwRVE4WfgPs=; b=fSqfRVkEvHR3BCPPw6iboii+zFuo1e2QPwgRWTpZoCI/bomP3MwbazWe4dfzwrjueX dq2vh67gbvaQN9bIQgs0yCVxGXwZHs158NrLYaAOEjhfORHppZKZ5gijrZbHHySxF17g 4qphXF/QcwAzUjley3s4hHpr8F/yrThRGwQtntSlKYNR6f4m0GeP692KoAdNs1G2cjq9 AkQL3JmFxmrsaJAt3mNFJz+i5HdtGeyZ4tt7pHNoRQMD3JuI2xiT9WOdN1lYuNgQ0CJC K9yamE54ztH4BgQc5oxCalt7J6GNMpiwXyO5rqeZBCH8UXy0/1Ha6pNJIuc/47qXc9cY xxLA== X-Gm-Message-State: APjAAAVaU5fs/aaVzqhQICCq9RSadgZ9uB/7DXEK4nFgg8wR8XGWwp2l 1Vk84Wq0TOcuyBdF+aYE/qzU1fcPaw4YbgVG0bLoqw== X-Google-Smtp-Source: APXvYqzfZOn54kYAPO9I0ZGNafVdVbSh8aoeYj2NXGfS6DUILJnZ6fQKxs6waas34yPUwbTe4Uz1pss2TtxJatrCnmk= X-Received: by 2002:a37:bdc3:: with SMTP id n186mr1260348qkf.407.1575443133283; Tue, 03 Dec 2019 23:05:33 -0800 (PST) MIME-Version: 1.0 From: Brian Leung Date: Tue, 3 Dec 2019 23:04:56 -0800 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches See attached. From e2df81c5a5e8692e3f981ec9bf5c28cf65cfa124 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 3 Dec 2019 23:03:06 -0800 Subject: [PATCH] gnu: Add ghc-apply-refact. * gnu/packages/haskell-xyz.scm (ghc-apply-refact): New variable. --- gnu/packages/haskell-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index fb6833207d..57a64fa880 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -13148,3 +13148,41 @@ Zstandard compression algorithm, a fast lossless compression algorithm targeting real-time compression scenarios at zlib-level and better compression ratios.") (license license:bsd-3))) + +(define-public ghc-apply-refact + (package + (name "ghc-apply-refact") + (version "0.6.0.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/apply-refact/apply-refact-" + version + ".tar.gz")) + (sha256 + (base32 + "0p2mqgjcqr1zcmk8zgr0yq7g8z1agsa6l493lkj6g3ya9lyhxgig")))) + (build-system haskell-build-system) + (inputs + `(("ghc-refact" ,ghc-refact) + ("ghc-exactprint" ,ghc-exactprint) + ("ghc-syb" ,ghc-syb) + ("ghc-temporary" ,ghc-temporary) + ("ghc-filemanip" ,ghc-filemanip) + ("ghc-unix-compat" ,ghc-unix-compat) + ("ghc-optparse-applicative" + ,ghc-optparse-applicative))) + (native-inputs + `(("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-golden" ,ghc-tasty-golden) + ("ghc-tasty-expected-failure" + ,ghc-tasty-expected-failure) + ("ghc-silently" ,ghc-silently))) + (home-page + "http://hackage.haskell.org/package/apply-refact") + (synopsis + "Perform refactorings specified by the refact library.") + (description + "Perform refactorings specified by the refact library. It is primarily used with HLint's --refactor flag.") + (license license:bsd-3))) -- 2.24.0