My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge opam/patches/ppx_derivers

+137
+4
vendor/opam/ppx_derivers/.gitignore
··· 1 + _build/ 2 + .merlin 3 + *.install 4 + _opam
+15
vendor/opam/ppx_derivers/CHANGES.md
··· 1 + # 1.2.1 2 + 3 + - Convert from Jbuilder to Dune (#5). 4 + 5 + # 1.2 6 + 7 + - Fix copyright year 8 + 9 + # 1.1 10 + 11 + - Added a LICENSE.md file 12 + 13 + # 1.0 14 + 15 + - Initial release
+24
vendor/opam/ppx_derivers/LICENSE.md
··· 1 + Copyright (c) 2017, Jeremie Dimino <jeremie@dimino.org> 2 + All rights reserved. 3 + Redistribution and use in source and binary forms, with or without 4 + modification, are permitted provided that the following conditions are met: 5 + 6 + * Redistributions of source code must retain the above copyright 7 + notice, this list of conditions and the following disclaimer. 8 + * Redistributions in binary form must reproduce the above copyright 9 + notice, this list of conditions and the following disclaimer in the 10 + documentation and/or other materials provided with the distribution. 11 + * Neither the name of Jeremie Dimino nor the names of his 12 + contributors may be used to endorse or promote products derived 13 + from this software without specific prior written permission. 14 + 15 + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 16 + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY 19 + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+22
vendor/opam/ppx_derivers/Makefile
··· 1 + INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),) 2 + 3 + .PHONY: all 4 + all: 5 + dune build 6 + 7 + .PHONY: install 8 + install: 9 + dune install $(INSTALL_ARGS) 10 + 11 + .PHONY: uninstall 12 + uninstall: 13 + dune uninstall $(INSTALL_ARGS) 14 + 15 + .PHONY: reinstall 16 + reinstall: 17 + $(MAKE) uninstall 18 + $(MAKE) install 19 + 20 + .PHONY: clean 21 + clean: 22 + dune clean
+10
vendor/opam/ppx_derivers/README.md
··· 1 + Ppx_derivers 2 + ------------ 3 + 4 + Ppx_derivers is a tiny package whose sole purpose is to allow 5 + [ppx_deriving](https://github.com/whitequark/ppx_deriving) and 6 + [ppx_type_conv](https://github.com/janestreet/ppx_type_conv) to inter-operate 7 + gracefully when linked as part of the same 8 + [ocaml-migrate-parsetree](https://github.com/let-def/ocaml-migrate-parsetree) 9 + driver. 10 +
+2
vendor/opam/ppx_derivers/dune-project
··· 1 + (lang dune 1.0) 2 + (name ppx_derivers)
+2
vendor/opam/ppx_derivers/pkg/pkg.ml
··· 1 + #use "topfind" 2 + #require "topkg-jbuilder.auto"
+19
vendor/opam/ppx_derivers/ppx_derivers.opam
··· 1 + opam-version: "2.0" 2 + maintainer: "jeremie@dimino.org" 3 + authors: ["Jérémie Dimino"] 4 + license: "BSD3" 5 + homepage: "https://github.com/ocaml-ppx/ppx_derivers" 6 + bug-reports: "https://github.com/ocaml-ppx/ppx_derivers/issues" 7 + dev-repo: "git://github.com/ocaml-ppx/ppx_derivers.git" 8 + build: [ 9 + ["dune" "build" "-p" name "-j" jobs] 10 + ] 11 + depends: [ 12 + "ocaml" 13 + "dune" {build} 14 + ] 15 + synopsis: "Shared [@@deriving] plugin registry" 16 + description: """ 17 + Ppx_derivers is a tiny package whose sole purpose is to allow 18 + ppx_deriving and ppx_type_conv to inter-operate gracefully when linked 19 + as part of the same ocaml-migrate-parsetree driver."""
+3
vendor/opam/ppx_derivers/src/dune
··· 1 + (library 2 + (name ppx_derivers) 3 + (public_name ppx_derivers))
+17
vendor/opam/ppx_derivers/src/ppx_derivers.ml
··· 1 + type deriver = .. 2 + 3 + let all = Hashtbl.create 42 4 + 5 + let register name deriver = 6 + if Hashtbl.mem all name then 7 + Printf.ksprintf failwith 8 + "Ppx_deriviers.register: %S is already registered" name; 9 + Hashtbl.add all name deriver 10 + 11 + let lookup name = 12 + match Hashtbl.find all name with 13 + | drv -> Some drv 14 + | exception Not_found -> None 15 + 16 + let derivers () = 17 + Hashtbl.fold (fun name drv acc -> (name, drv) :: acc) all []
+19
vendor/opam/ppx_derivers/src/ppx_derivers.mli
··· 1 + (** Ppx derivers 2 + 3 + This module holds the various derivers registered by either ppx_deriving or 4 + ppx_type_conv. 5 + *) 6 + 7 + (** Type of a deriver. The concrete constructors are added by 8 + ppx_type_conv/ppx_deriving. *) 9 + type deriver = .. 10 + 11 + (** [register name deriver] registers a new deriver. Raises if [name] is already 12 + registered. *) 13 + val register : string -> deriver -> unit 14 + 15 + (** Lookup a previously registered deriver *) 16 + val lookup : string -> deriver option 17 + 18 + (** [derivers ()] returns all currently registered derivers. *) 19 + val derivers : unit -> (string * deriver) list