this repo has no description
1opam-version: "2.0" 2authors: ["Petter A. Urkedal"] 3maintainer: "paurkedal@gmail.com" 4homepage: "https://github.com/paurkedal/ppx_compose/" 5bug-reports: "https://github.com/paurkedal/ppx_compose/issues" 6dev-repo: "git+https://github.com/paurkedal/ppx_compose.git" 7license: "LGPL-3.0-only WITH OCaml-LGPL-linking-exception" 8 9build: [ 10 ["jbuilder" "build" "-p" name "-j" jobs] 11 ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test} 12] 13depends: [ 14 "ocaml" {>= "4.02.3"} 15 "jbuilder" {>= "1.0+beta7"} 16 "ocaml-migrate-parsetree" {< "2.0.0"} 17] 18synopsis: "Inlined Function Composition" 19description: """ 20`ppx_compose` is a simple syntax extension which rewrites code containing 21function compositions into composition-free code, effectively inlining the 22composition operators. The following two operators are supported 23 24 let (%) g f x = g (f x) 25 let (%>) f g x = g (f x) 26 27Corresponding definitions are not provided, so partial applications of `(%)` 28and `(%>)` will be undefined unless you provide the definitions. 29 30The following rewrites are done: 31 32 * A composition occurring to the left of an application is reduced by 33 applying each term of the composition from right to left to the 34 argument, ignoring associative variations. 35 36 * A composition which is not the left side of an application is first 37 turned into one by η-expansion, then the above rule applies. 38 39 * Any partially applied composition operators are passed though unchanged. 40 41E.g. 42 43 h % g % f ==> (fun x -> h (f (g x))) 44 h % (g % f) ==> (fun x -> h (f (g x))) 45 (g % f) (h % h) ==> g (f (fun x -> h (h x)))""" 46url { 47 src: 48 "https://github.com/paurkedal/ppx_compose/releases/download/v0.0.4/ppx_compose-0.0.4.tbz" 49 checksum: [ 50 "sha256=22e46520a7ff8a846e32e64324b3d65a3f7ea29d27d1260ae7423e9b45f609e2" 51 "md5=d597c0b1cf29402bbd29d821792c867e" 52 ] 53}