[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/13: gnu: Add ghc-unsafe.
From: |
guix-commits |
Subject: |
02/13: gnu: Add ghc-unsafe. |
Date: |
Fri, 16 Aug 2019 08:22:59 -0400 (EDT) |
rob pushed a commit to branch wip-haskell-updates
in repository guix.
commit 2bd80a1f64a618b9d71364dd49214b191cadbedf
Author: John Soo <address@hidden>
Date: Sun Jul 7 17:27:42 2019 -0700
gnu: Add ghc-unsafe.
* gnu/packages/haskell.scm (ghc-unsafe): New variable.
---
gnu/packages/haskell-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 91d009d..14e65d1 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -19,6 +19,7 @@
;;; Copyright © 2018, 2019 Gabriel Hondet <address@hidden>
;;; Copyright © 2019 Robert Vollmert <address@hidden>
;;; Copyright © 2019 Jacob MacDonald <address@hidden>
+;;; Copyright © 2019 John Soo <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -10547,6 +10548,40 @@ and high speed.")
`(("ghc-hashable" ,ghc-hashable-bootstrap)))
(properties '(hidden? #t))))
+(define-public ghc-unsafe
+ (package
+ (name "ghc-unsafe")
+ (version "0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "https://hackage.haskell.org/package/unsafe/unsafe-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0hc6xr1i3hkz25gdgfx1jqgpsc9mwa05bkfynp0mcfdlyz6782nz"))))
+ (build-system haskell-build-system)
+ (home-page "https://hackage.haskell.org/package/unsafe")
+ (synopsis "Unified interface to unsafe functions")
+ (description
+ "SafeHaskell introduced the notion of safe and unsafe modules. In order
to
+make as many as possible modules \\\"safe\\\", the well-known unsafe functions
+were moved to distinguished modules. This makes it hard to write packages that
+work with both old and new versions of GHC. This package provides a single
+module System.Unsafe that exports the unsafe functions from the base package.
+It provides them in a style ready for qualification, that is, you should import
+them by
+
+import qualified System.Unsafe as Unsafe
+
+The package also contains a script called rename-unsafe.sh. It replaces all
+occurrences of the original identifiers with the qualified identifiers from
this
+package. You still have to adapt the import commands. It uses the
+darcs-replace-rec script from the darcs-scripts package.")
+ (license license:bsd-3)))
+
(define-public ghc-uri-bytestring
(package
(name "ghc-uri-bytestring")
- branch wip-haskell-updates created (now 95d2f31), guix-commits, 2019/08/16
- 04/13: gnu: Add ghc-timeit., guix-commits, 2019/08/16
- 05/13: gnu: Add ghc-storablevector., guix-commits, 2019/08/16
- 02/13: gnu: Add ghc-unsafe.,
guix-commits <=
- 03/13: gnu: Add ghc-non-negative., guix-commits, 2019/08/16
- 06/13: gnu: Add ghc-fmlist., guix-commits, 2019/08/16
- 08/13: gnu: Add ghc-listlike., guix-commits, 2019/08/16
- 09/13: gnu: Add ghc-storable-tuple., guix-commits, 2019/08/16
- 07/13: gnu: Add ghc-storable-record., guix-commits, 2019/08/16
- 10/13: gnu: Add ghc-process-extras., guix-commits, 2019/08/16
- 12/13: gnu: Add ghc-js-flot., guix-commits, 2019/08/16
- 13/13: gnu: Add hoogle., guix-commits, 2019/08/16
- 11/13: gnu: Add ghc-js-jquery., guix-commits, 2019/08/16
- 01/13: gnu: packages: Split non-compilers out of haskell.scm., guix-commits, 2019/08/16