Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Monad library #325

Merged
merged 4 commits into from

2 participants

Phil Scott Thomas Gazagnaire
Phil Scott

I have started a monad + applicative library for Ocaml with some standard transformers. I have also supplied my own lazy list library with what I believe is much better laziness compared to BatLazyList. This is not necessarily an improvement, since the extra laziness comes with tradeoffs. Note that applicative functions such as lift2 are generated, by default, from a base applicative interface, which I believe is generally better for performance.

Cheers!

Thomas Gazagnaire
Owner

Hi Phil, it seems than your forgot to add the opam and descr files to your commit.

Also, opam-repository aims to accept "stable" packages only, ie. you'll need to use:

archive: "...."
checksum: "..."

in your url file (the easiest way to create an archive being adding a tag to your git repo).

Phil Scott

haha! Thanks for the prompt response! I'm still getting used to all this. Any better?

Thomas Gazagnaire
Owner

It's much better now :-) Last (minor) point is that you don't really need to depend on oasis. People usually put oasis auto-generated files in the their repository (it's not very clean, but at least you don't depend on oasis at build time).

Phil Scott

Ah, sounds reasonable. I'll push the files into my ocaml-monad repo for the next version.

Thomas Gazagnaire samoht merged commit 4b6f7c9 into from
Thomas Gazagnaire
Owner

Hi Phil, I'm trying to reach you to get your agreement to relicense your contributions under CC0, but the email address you've specified in that package doesn't work.

Could you please comment on #955 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 23, 2013
  1. Phil Scott

    Initial commit.

    Chattered authored
  2. Phil Scott

    Initial commit.

    Chattered authored
  3. Phil Scott

    Added batteries dependency.

    Chattered authored
  4. Phil Scott

    Checksummed and tagged.

    Chattered authored
This page is out of date. Refresh to see the latest.
1  packages/monadlib.0.1/descr
View
@@ -0,0 +1 @@
+A starter library for monads, with transformers and applicatives.
13 packages/monadlib.0.1/opam
View
@@ -0,0 +1,13 @@
+opam-version: "1"
+maintainer: "philedscott@gmail.com"
+build: [
+ ["oasis" "setup"]
+ ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
+ ["ocaml" "setup.ml" "-build"]
+ ["ocaml" "setup.ml" "-clean"]
+ ["ocaml" "setup.ml" "-install"]
+]
+remove: [
+ ["ocaml" "setup.ml" "-uninstall" "monadlib"]
+]
+depends: ["oasis" "ocamlfind" "batteries"]
2  packages/monadlib.0.1/url
View
@@ -0,0 +1,2 @@
+archive: "https://github.com/Chattered/ocaml-monad/archive/v0.1.tar.gz"
+checksum: "da3aa5a4471d75c2944afed4911be9e0"
Something went wrong with that request. Please try again.