all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: divoplade <d@divoplade.fr>
To: zimoun <zimon.toutoune@gmail.com>, Julien Lepiller <julien@lepiller.eu>
Cc: 45133@debbugs.gnu.org
Subject: [bug#45133] Add ocaml reactiveData
Date: Thu, 10 Dec 2020 15:57:07 +0100	[thread overview]
Message-ID: <c4b9aeae0ab049516dbd6d56b0b8f566de141d49.camel@divoplade.fr> (raw)
In-Reply-To: <86pn3hhgbj.fsf@gmail.com>

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

Le jeudi 10 décembre 2020 à 15:43 +0100, zimoun a écrit :
> > I've tried to reproduce the changes of simon but I'm not sure I
> > reproduced the indentation correctly (it's different from what
> > etc/indent.el does, but a lot of ocaml packages are not indented
> > according to that script).
> 
> Ahah!  Let use the one of etc/indent.el for the ocaml-reactivedata
> and
> see the other ones later.

Weird, this indentation is still correct. Maybe etc/indent.el fails to
convert tabs? Anyway.

> It is a matter of taste.  You can read the thread starting here:
> 
> <
> https://yhetil.org/guix-devel/CAJ3okZ0v3VvmT=eWAVeAQoFqZh4L3H4tUkEJn1-5EXcJgRB_tQ@mail.gmail.com
> >
> 
> The main advantages of git-fetch over url-fetch are, IMHO:
> 
>  - lint saves to SWH; no SWH fallback with url-fetch
>  - easy to try any other commit (--with-commit)
>  - with specified commit–as it is here– avoid the in-place upstream
> replacement annoyance

I'm convinced, although we should keep in mind that future commits use
dune as a build system, so we wont be able to explore the future that
easily.

[-- Attachment #2: 0001-gnu-add-ocaml-reactivedata.patch --]
[-- Type: text/x-patch, Size: 2318 bytes --]

From 581f992d1e3172f39088913270b0f4ce314dbfad Mon Sep 17 00:00:00 2001
From: divoplade <d@divoplade.fr>
Date: Thu, 10 Dec 2020 15:06:50 +0100
Subject: [PATCH] gnu: add ocaml-reactivedata

	* ocaml.scm (ocaml-reactivedata): add ocaml-reactivedata
---
 gnu/packages/ocaml.scm | 43 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 2bfda7307e..fac4e31ce5 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5859,3 +5859,46 @@ LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
     ;; Version 2 only, with linking exception.
     (license license:lgpl2.0)))
+
+(define-public ocaml-reactivedata
+  ;; Future releases will use dune.
+  (package
+    (name "ocaml-reactivedata")
+    (version "0.2.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ocsigen/reactiveData")
+                    (commit version)))
+              (sha256
+               (base32
+                "0l5z0fsckqkywjbn2nwy3s55h85yx8scc4hq9qzr9ig3hrq1mfb0"))))
+    (arguments
+     `(#:phases
+       (modify-phases
+           %standard-phases
+         (delete 'configure)
+         (add-before 'build 'fix-deprecated
+           (lambda _
+             (substitute*
+                 "src/reactiveData.ml"
+               (("Pervasives.compare") "compare"))
+             #t))
+         (add-before 'install 'forget-makefile
+           (lambda _
+             (delete-file "Makefile")
+             #t)))))
+    (build-system ocaml-build-system)
+    (native-inputs
+     `(("ocamlbuild" ,ocamlbuild)
+       ("opam" ,opam)))
+    (propagated-inputs
+     `(("ocaml-react" ,ocaml-react)))
+    (home-page "https://github.com/ocsigen/reactiveData")
+    (synopsis "Declarative events and signals for OCaml")
+    (description
+     "React is an OCaml module for functional reactive programming (FRP). It
+provides support to program with time varying values : declarative events and
+ signals. React doesn't define any primitive event or signal, it lets the
+client chooses the concrete timeline.")
+    (license license:lgpl2.1+)))
-- 
2.29.2


  reply	other threads:[~2020-12-10 15:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 14:58 [bug#45133] Add ocaml reactiveData divoplade
2020-12-09 15:40 ` Julien Lepiller
2020-12-09 17:03   ` divoplade
2020-12-09 17:59     ` zimoun
2020-12-09 18:05       ` divoplade
2020-12-09 18:35         ` zimoun
2020-12-09 19:12           ` Julien Lepiller
2020-12-10 12:41             ` zimoun
2020-12-10 12:49               ` divoplade
2020-12-10 12:42             ` divoplade
2020-12-10 13:53               ` Julien Lepiller
2020-12-10 14:12                 ` divoplade
2020-12-10 14:43                   ` zimoun
2020-12-10 14:57                     ` divoplade [this message]
2020-12-15 14:49                       ` bug#45133: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4b9aeae0ab049516dbd6d56b0b8f566de141d49.camel@divoplade.fr \
    --to=d@divoplade.fr \
    --cc=45133@debbugs.gnu.org \
    --cc=julien@lepiller.eu \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.