From patchwork Sat Apr 18 22:31:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Soo X-Patchwork-Id: 21351 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 3280C27BBE4; Sat, 18 Apr 2020 23:33:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5F3C427BBE1 for ; Sat, 18 Apr 2020 23:33:20 +0100 (BST) Received: from localhost ([::1]:34062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPw1X-0001Xp-S9 for patchwork@mira.cbaines.net; Sat, 18 Apr 2020 18:33:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42954) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPw1L-0001WD-NE for guix-patches@gnu.org; Sat, 18 Apr 2020 18:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jPw1H-00036o-Eb for guix-patches@gnu.org; Sat, 18 Apr 2020 18:33:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jPw1G-00036d-Mi for guix-patches@gnu.org; Sat, 18 Apr 2020 18:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPw1G-0006iO-IH for guix-patches@gnu.org; Sat, 18 Apr 2020 18:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#38596] [PATCH] gnu: Add PureScript. Resent-From: John Soo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Apr 2020 22:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38596 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 38596@debbugs.gnu.org Received: via spool by 38596-submit@debbugs.gnu.org id=B38596.158724912825743 (code B ref 38596); Sat, 18 Apr 2020 22:33:02 +0000 Received: (at 38596) by debbugs.gnu.org; 18 Apr 2020 22:32:08 +0000 Received: from localhost ([127.0.0.1]:43731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPw0E-0006gi-8L for submit@debbugs.gnu.org; Sat, 18 Apr 2020 18:32:08 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:41874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPw09-0006gQ-4c for 38596@debbugs.gnu.org; Sat, 18 Apr 2020 18:31:56 -0400 Received: by mail-oi1-f196.google.com with SMTP id k9so5524945oia.8 for <38596@debbugs.gnu.org>; Sat, 18 Apr 2020 15:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7UCPaDCk8HlHdHMrfb3VovF4iUleJbbyXhYrhPr2CQo=; b=eUbAF4K4fst2N2T5bYE6joI9w8tEPb4/OBUqqFp3OtZfJrv07oEBoE/RyCCl0pnYvZ oAWxm49gz/kXWjD+RS0DU1DwesObPXlvkKfYUDBSIysxremO225hzP5zTJGoTWgCpRgr KSA2LzaqWyaEKo6YTTI6TF47aL4JUl0Tm/5YLyjroBoLeAKiEWB9z+kHIsKVas6ZGJ0p UDiV8tpZ6VP2/NPVolBbqMyK4FplWGUmXVd8BUNQ2TUNsQrJXtw8eJehAsKKz4RZIYf7 FepqNPJeIc1fJUheaxXOqsdLbVh/ZdhKj6Rk9zmtTwTl9/O8fyFZqdBZKJK6oDwsbPF/ dNCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7UCPaDCk8HlHdHMrfb3VovF4iUleJbbyXhYrhPr2CQo=; b=HXwT+Yc6HQmrX33lU3YKNZ3ceB0iGzT843f/mHi/9apSVS9j5Ph9whhvPMkyJaxZyh 5E/FGTi9PrulWyWIZjbDUlBvuyalyZ/tk0fOI+/rCWDaWDRrX5LjA5K9kyCKoTM7Axrs 8OCyHl0DAVdtmnnH1CO4K5KFLxcv08TdCUrT+uU4OjRyU2Jt83AGOTxSw0YZcdqV8srQ 4p/PZuBiT5agujabbbKTzcYGTY/MMecqxaHR8S8tslaaosct/wtjsyLayxe2+cOUluSX VSKMCPX08KJ4dWLvWjdXWtWlGJGu+RXmIRkgaV8CTC4ghRiifcqv8zfrZS/yKE0bz3Dh gvOA== X-Gm-Message-State: AGi0PubM19gsxIL6I9CLWBDBKd1RGzl151TZNmYMTT+F3fmm8s7J6V8F GMcfRP+5Xq0fO6Yc8daGMk6kNhyrVyf4qA== X-Google-Smtp-Source: APiQypJnBzsrcb9M2e7Q2lusDZARxvj5cPo21Zr/HBJUFEPZnKL0+xtDh4MLTs/qdj9frEABNtWPZQ== X-Received: by 2002:aca:cdd1:: with SMTP id d200mr6271077oig.153.1587249107161; Sat, 18 Apr 2020 15:31:47 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::479]) by smtp.gmail.com with ESMTPSA id a27sm113700oos.37.2020.04.18.15.31.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Apr 2020 15:31:45 -0700 (PDT) From: John Soo References: <87k12lrdd3.fsf@asu.edu> <87imhx6hpl.fsf@cbaines.net> Date: Sat, 18 Apr 2020 15:31:43 -0700 In-Reply-To: <87imhx6hpl.fsf@cbaines.net> (Christopher Baines's message of "Fri, 17 Apr 2020 20:21:58 +0100") Message-ID: <87k12cifxs.fsf@asu.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 Hi, Christopher Baines writes: > I've had an initial look through these now, sorry it's taken so long! No problem. I was thinking I ought to do some qa and review, myself. > ghc-utf8-light could do with a better description, something a little > more informative. I think I made this better as well as fixing some other descriptions lacking full sentences. > The ghc-sourcemap and ghc-mtl-compat tests are disabled, it would be > good to at least add a comments as to why. I added a comment for sourcemap. I realized mtl-compat's tests and haddocks worked just fine so those are re-enabled. > The ghc-protolude synopsis could potentially be more informative. I think I added some more commentary there. It's a bit tricky since I have not used protolude myself so I am not sure what to provide aside from their stated description. > I think adding specific versions of dependencies for purescript is OK, > but only if they're justified, like if the package only builds with that > version. The justification should also be noted in the purescript > package description. Ah, thanks. Would a comment above the dependencies suffice? The packages won't be searchable since they are not define-public (yet?). > I don't think it's necessary to go through all the custom versions of > packages you've added, but it would be good to at least see if there's > one case where the upstream specification is overly strict, and the > slightly different version from Guix would work. That at least would > provide an example of how to override versions going forward. Ah thanks for the suggestion here. I found one that could be taken from the existing package in (gnu packages haskell-xyz). The rest seemed to be either pinned exactly or too strict to take from guix packages. Thanks for your help and tools! John From 747006cfc8c3739912138d9c3ec5f60f204e8758 Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 13 Dec 2019 09:21:50 -0800 Subject: [PATCH 21/21] gnu: Add purescript. * gnu/packages/purescript.scm (purescript): New variable. --- gnu/packages/purescript.scm | 89 +++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/gnu/packages/purescript.scm b/gnu/packages/purescript.scm index 75e540e219..cec530dcdf 100644 --- a/gnu/packages/purescript.scm +++ b/gnu/packages/purescript.scm @@ -101,3 +101,92 @@ (sha256 (base32 "1xacvl5wf47cz61igb94zf961b9ks0yhr02myxgjf53clm70dg6j")))))) + +(define-public purescript + (package + (name "purescript") + (version "0.13.5") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://hackage/package/purescript/purescript-" + version + ".tar.gz")) + (sha256 + (base32 + "0plqzlcfaw2ik2im7aq8yy1b1y88cnc8qd7wwaayndbdz060s9j4")))) + (build-system haskell-build-system) + (inputs + `(("ghc-glob" ,ghc-glob-0.9.3) + ("ghc-aeson" ,ghc-aeson) + ("ghc-aeson-better-errors" ,ghc-aeson-better-errors) + ("ghc-aeson-pretty" ,ghc-aeson-pretty) + ("ghc-ansi-terminal" ,ghc-ansi-terminal-0.8.2) + ("ghc-base-compat" ,ghc-base-compat) + ("ghc-blaze-html" ,ghc-blaze-html) + ("ghc-bower-json" ,ghc-bower-json) + ("ghc-boxes" ,ghc-boxes) + ("ghc-cheapskate" ,ghc-cheapskate) + ("ghc-clock" ,ghc-clock-0.7.2) + ("ghc-cryptonite" ,ghc-cryptonite) + ("ghc-data-ordlist" ,ghc-data-ordlist) + ("ghc-dlist" ,ghc-dlist) + ("ghc-edit-distance" ,ghc-edit-distance) + ("ghc-file-embed" ,ghc-file-embed) + ("ghc-fsnotify" ,ghc-fsnotify) + ("ghc-happy" ,ghc-happy) + ("ghc-language-javascript" ,ghc-language-javascript) + ("ghc-lifted-async" ,ghc-lifted-async) + ("ghc-lifted-base" ,ghc-lifted-base) + ("ghc-memory" ,ghc-memory) + ("ghc-microlens-platform" ,ghc-microlens-platform) + ("ghc-monad-control" ,ghc-monad-control) + ("ghc-monad-logger" ,ghc-monad-logger) + ("ghc-network" ,ghc-network-3.0.1.1) + ("ghc-parallel" ,ghc-parallel) + ("ghc-pattern-arrows" ,ghc-pattern-arrows) + ("ghc-protolude" ,ghc-protolude) + ("ghc-regex-tdfa" ,ghc-regex-tdfa) + ("ghc-safe" ,ghc-safe) + ("ghc-scientific" ,ghc-scientific) + ("ghc-semialign" ,ghc-semialign) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-sourcemap" ,ghc-sourcemap) + ("ghc-split" ,ghc-split) + ("ghc-stringsearch" ,ghc-stringsearch) + ("ghc-syb" ,ghc-syb) + ("ghc-these" ,ghc-these) + ("ghc-transformers-base" ,ghc-transformers-base) + ("ghc-transformers-compat" ,ghc-transformers-compat) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-utf8-string" ,ghc-utf8-string) + ("ghc-vector" ,ghc-vector) + ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) + ("ghc-http-types" ,ghc-http-types) + ("ghc-network" ,ghc-network) + ("ghc-optparse-applicative" ,ghc-optparse-applicative) + ("ghc-wai" ,ghc-wai) + ("ghc-wai-websockets" ,ghc-wai-websockets) + ("ghc-warp" ,ghc-warp) + ("ghc-websockets" ,ghc-websockets) + ("ghc-gitrev" ,ghc-gitrev))) + (native-inputs + `(("ghc-happy" ,ghc-happy-1.19.9) + ("ghc-hunit" ,ghc-hunit) + ("ghc-hspec" ,ghc-hspec) + ("hspec-discover" ,hspec-discover) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hspec" ,ghc-tasty-hspec))) + (arguments + `(;; Tests require npm + #:tests? #f + ;; Haddock fails + #:haddock? #f + #:configure-flags '("--flags=release"))) + (home-page "https://www.purescript.org/") + (synopsis "Haskell inspired programming language compiling to JavaScript") + (description + "A small strongly, statically typed programming language with +expressive types, inspired by Haskell and compiling to JavaScript.") + (license license:bsd-3))) -- 2.26.0