Message ID | CAKrPhPN1XXiXwuaAFdeSau4XHxagSxqhaKdSS4t-1-2t+vo2Yw@mail.gmail.com |
---|---|
State | New |
Headers | show |
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’.
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
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
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