opam-version: "2.0"
maintainer: "Paolo Donadeo <p.donadeo@gmail.com>"
authors: [ "Alessandro Strada <alessandro.strada@gmail.com>" ]
license: "BSD-3-Clause"
homepage: "https://github.com/pdonadeo/ocaml-lens"
dev-repo: "git+https://github.com/pdonadeo/ocaml-lens.git"
bug-reports: "https://github.com/pdonadeo/ocaml-lens/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix "--enable-ppx" {ppx_deriving:installed & ppx_tools:installed} ]
  ["ocaml" "setup.ml" "-build"]
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "lens"]
]
depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "ounit" {build}
  "ocamlbuild" {build}
]
depopts: [
  "ppx_deriving"
  "ppx_tools"
]
synopsis: "Functional lenses"
description: """
Based on F# implementation in https://github.com/fsharp/fsharpx
see https://github.com/fsharp/fsharpx/blob/master/src/FSharpx.Core/Lens.fs for the original implementation
see http://bugsquash.blogspot.com/2011/11/lenses-in-f.html -  Lenses in F#
see http://stackoverflow.com/questions/8179485/updating-nested-immutable-data-structures - Stackoverflow question about Updating nested immutable data structures
see http://stackoverflow.com/questions/5767129/lenses-fclabels-data-accessor-which-library-for-structure-access-and-mutatio - Haskell libraries for structure access and mutation
see http://www.youtube.com/watch?v=efv0SQNde5Q - Functional lenses for Scala by Edward Kmett on YouTube
see http://patternsinfp.wordpress.com/2011/01/31/lenses-are-the-coalgebras-for-the-costate-comonad - Lenses are the coalgebras for the costate comonad by Jeremy Gibbons"""
flags: light-uninstall
url {
  src: "https://github.com/pdonadeo/ocaml-lens/archive/v1.1.0.tar.gz"
  checksum: "md5=857d2ab648c5d65837dad0ace14a5ad6"
}
conflicts: [
  "ppx_deriving" {>= "5.0"}
]
