From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NdZ-0006B2-Vw for guix-patches@gnu.org; Tue, 02 Oct 2018 12:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NdW-0004Qv-NT for guix-patches@gnu.org; Tue, 02 Oct 2018 12:35:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7NdW-0004Qq-HY for guix-patches@gnu.org; Tue, 02 Oct 2018 12:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7NdW-0004QB-Bv for guix-patches@gnu.org; Tue, 02 Oct 2018 12:35:02 -0400 Subject: [bug#32908] [PATCH 09/24] gnu: Add ghc-bindings-dsl. Resent-Message-ID: From: Ricardo Wurmus Date: Tue, 2 Oct 2018 18:32:44 +0200 Message-ID: <20181002163255.5304-4-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20181002162912.5037-5-ricardo.wurmus@mdc-berlin.de> References: <20181002162912.5037-5-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32908@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/haskell.scm (ghc-bindings-dsl): New variable. --- gnu/packages/haskell.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index d2f6a8b23..41b114604 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -10823,6 +10823,31 @@ monadic incremental interface is provided as well.") source and a sink.") (license license:bsd-3))) +(define-public ghc-bindings-dsl + (package + (name "ghc-bindings-dsl") + (version "1.0.25") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/bindings-DSL/" + "bindings-DSL-" version ".tar.gz")) + (sha256 + (base32 + "0kqrd78nspl3lk4a0fqn47d8dirjg3b24dkvkigcrlb81hw35pk3")))) + (build-system haskell-build-system) + (home-page "https://github.com/jwiegley/bindings-dsl/wiki") + (synopsis "FFI domain specific language, on top of hsc2hs") + (description + "This is a set of macros to be used when writing Haskell FFI. They were +designed to be able to fully describe C interfaces, so that @code{hsc2hs} can +extract from them all Haskell code needed to mimic such interfaces. All +Haskell names used are automatically derived from C names, structures are +mapped to Haskell instances of @code{Storable}, and there are also macros you +can use with C code to help write bindings to inline functions or macro +functions.") + (license license:bsd-3))) + (define-public ghc-weigh (package (name "ghc-weigh") -- 2.19.0