Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed param ordering on <$>

  • Loading branch information...
commit 2fa67b02ac63741fe8bcdce84db80ea91efc3c6e 1 parent e4a4127
authored June 02, 2011
7  project.clj
... ...
@@ -1,6 +1,5 @@
1 1
 (defproject clarsec "0.0.1-SNAPSHOT"
2 2
   :description "Parsec ported to clojure"
3  
-  :dependencies [[org.clojure/clojure "1.1.0"]
4  
-                 [org.clojure/clojure-contrib "1.0-SNAPSHOT"]]
5  
-  :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]]
6  
-  :main eu.dnetlib.dlms.parser)
  3
+  :dependencies [[org.clojure/clojure "1.2.1"]
  4
+                 [org.clojure/clojure-contrib "1.2.0"]]
  5
+  :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]])
3  src/eu/dnetlib/clojure/clarsec.clj
@@ -59,7 +59,8 @@
59 59
 ;; Bind with a non monadic function
60 60
 (defn >>== [p f]
61 61
   (bind p #(result (f %))))
62  
-(def <$> >>==)
  62
+(defn <$> [f p]
  63
+  (bind p #(result (f %))))
63 64
 
64 65
 
65 66
 (def any-token

0 notes on commit 2fa67b0

Please sign in to comment.
Something went wrong with that request. Please try again.