unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 3/5] gnu: Add ghc-data-access-transformers.
@ 2016-10-25 16:19 Federico Beffa
  2016-10-28 13:44 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2016-10-25 16:19 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0003-gnu-Add-ghc-data-access-transformers.patch --]
[-- Type: text/x-patch, Size: 1576 bytes --]

From 675fbdda80b453dc6e1b8aa4635d4adefd7c18df Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Mon, 24 Oct 2016 17:35:27 +0200
Subject: [PATCH 3/5] gnu: Add ghc-data-access-transformers.

* gnu/packages/haskell.scm (ghc-data-access-transformers): New variable.
---
 gnu/packages/haskell.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 41ae191..c8c6f10 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -7922,4 +7922,24 @@ a set of wrappers to use the hash tables in the IO monad.")
 manipulating fields of records.")
     (license license:bsd-3)))
 
+(define-public ghc-data-accessor-transformers
+  (package
+    (name "ghc-data-accessor-transformers")
+    (version "0.2.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/data-accessor-transformers/data-accessor-transformers-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "0yp030vafbpddl27m606aibbbr5ar5j5bsv4bksscz3cq4yq5j10"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-data-accessor" ,ghc-data-accessor)))
+    (home-page "http://www.haskell.org/haskellwiki/Record_access")
+    (synopsis "Use Accessor to access state in transformers State monad")
+    (description "This package provides Haskell modules to allow use of
+Accessor to access state in transformers State monad.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/5] gnu: Add ghc-data-access-transformers.
  2016-10-25 16:19 [PATCH 3/5] gnu: Add ghc-data-access-transformers Federico Beffa
@ 2016-10-28 13:44 ` Ludovic Courtès
  2016-10-28 16:20   ` Federico Beffa
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-28 13:44 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> From 675fbdda80b453dc6e1b8aa4635d4adefd7c18df Mon Sep 17 00:00:00 2001
> From: Federico Beffa <beffa@fbengineering.ch>
> Date: Mon, 24 Oct 2016 17:35:27 +0200
> Subject: [PATCH 3/5] gnu: Add ghc-data-access-transformers.
>
> * gnu/packages/haskell.scm (ghc-data-access-transformers): New variable.

[...]

> +    (synopsis "Use Accessor to access state in transformers State monad")

I can’t parse “transformers State monad”, but maybe it’s just me, or is
it missing a word, like “transformers of the State monad”, “State monad
transformers”?

Otherwise LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/5] gnu: Add ghc-data-access-transformers.
  2016-10-28 13:44 ` Ludovic Courtès
@ 2016-10-28 16:20   ` Federico Beffa
  2016-10-28 20:17     ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2016-10-28 16:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

On Fri, Oct 28, 2016 at 3:44 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>> +    (synopsis "Use Accessor to access state in transformers State monad")
>
> I can’t parse “transformers State monad”, but maybe it’s just me, or is
> it missing a word, like “transformers of the State monad”, “State monad
> transformers”?

The way I understand it is: "transformers State monad" stands for the
transformer monad called StateT, itself a monad.  But I'll let you or
a native English speaker decide about the grammatical correctness of
the synopsis provided by the author :-)

Thanks,
Fede

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/5] gnu: Add ghc-data-access-transformers.
  2016-10-28 16:20   ` Federico Beffa
@ 2016-10-28 20:17     ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2016-10-28 20:17 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel


Federico Beffa <beffa@ieee.org> writes:

> On Fri, Oct 28, 2016 at 3:44 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>> Federico Beffa <beffa@ieee.org> skribis:
>>> +    (synopsis "Use Accessor to access state in transformers State monad")
>>
>> I can’t parse “transformers State monad”, but maybe it’s just me, or is
>> it missing a word, like “transformers of the State monad”, “State monad
>> transformers”?
>
> The way I understand it is: "transformers State monad" stands for the
> transformer monad called StateT, itself a monad.  But I'll let you or
> a native English speaker decide about the grammatical correctness of
> the synopsis provided by the author :-)

“transformers” is a package providing monad transformers.  But even
after looking at the code I can’t quite make sense of the synopsis :)

It provides functions that take accessors and return State and
Read-Write-State monad transformers.

~~ Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-28 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25 16:19 [PATCH 3/5] gnu: Add ghc-data-access-transformers Federico Beffa
2016-10-28 13:44 ` Ludovic Courtès
2016-10-28 16:20   ` Federico Beffa
2016-10-28 20:17     ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).