Permalink
Browse files

fixed param ordering on <$>

  • Loading branch information...
1 parent e4a4127 commit 2fa67b02ac63741fe8bcdce84db80ea91efc3c6e Jason Jackson committed Jun 2, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −4 project.clj
  2. +2 −1 src/eu/dnetlib/clojure/clarsec.clj
View
@@ -1,6 +1,5 @@
(defproject clarsec "0.0.1-SNAPSHOT"
:description "Parsec ported to clojure"
- :dependencies [[org.clojure/clojure "1.1.0"]
- [org.clojure/clojure-contrib "1.0-SNAPSHOT"]]
- :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]]
- :main eu.dnetlib.dlms.parser)
+ :dependencies [[org.clojure/clojure "1.2.1"]
+ [org.clojure/clojure-contrib "1.2.0"]]
+ :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]])
@@ -59,7 +59,8 @@
;; Bind with a non monadic function
(defn >>== [p f]
(bind p #(result (f %))))
-(def <$> >>==)
+(defn <$> [f p]
+ (bind p #(result (f %))))
(def any-token

0 comments on commit 2fa67b0

Please sign in to comment.