Skip to content

Instantly share code, notes, and snippets.

@julien-truffaut
Last active November 22, 2015 20:42
Show Gist options
  • Save julien-truffaut/5b0d35b51dd9f1ba8129 to your computer and use it in GitHub Desktop.
Save julien-truffaut/5b0d35b51dd9f1ba8129 to your computer and use it in GitHub Desktop.
WIP - Release note for Monocle 1.2.0-M2

1.2.0-M2

Thanks to all the 14 contributors since 1.2.0-M1

Addition

  • add only Prism to match a single value see
  • add below Prism to lift a Prism in a Traverse see
  • add length for Fold and Traversal #236 (thanks to aoiroaoino)
  • add optics for scalaz.Either3 #242 (thanks to aoiroaoino)
  • add optNelToList Iso see
  • add fromIso combinator for all optics #245
  • add left and right methods for Iso, Prism, Getter and Fold #273
  • add safe down cast from BigInt #267
  • add productToTuple Iso between case class and tuple using shapeless #247
  • add GenIso.fields white box that generates the same Iso than productToTuple with better performances but less IDE support #297 (thaks to japgolly)
  • add @PLenses macro annotation to generate PLens for case class with type parameters #114 (thanks to exlevan)
  • add Plated typeclass #289 (thanks to puffnfresh)
  • add optics for scalaz.Cofree #290 (thanks to LiamGoodacre)

Non backward compatible changes

  • change At definition from def at(index: I): Lens[S, Option[A]] to def at(index: I): Lens[S, A]
  • change At instance for Set and ISet from Lens[S, Option[Unit]] to Lens[S, Boolean]
  • remove Index instances for bit indexing primitive Long, Int, Char, Bye from monocle-core
  • add monocle-refined module with At instances for bit indexing primitive Long, Int, Char, Bye #291 (thanks to fthomas and julien-truffaut)

Deprecation

  • deprecate theseDisjunction to theseToDisjunction see
  • deprecate nelAndOneIso to nelToOneAnd see
  • deprecate sum to choice and product to split #239

Documentation

  • add tut examples for Prism #228
  • add tut examples for Iso #279 (thanks to justjoheinz)
  • add examples for Http Request optics usage #262 (thanks to 1ambda)
  • add learning resources to the website #251

Bug Fixes

  • fix long parser #244 (thanks to NightRa)
  • fix GenIso case class with type parameter #263

Optimisation

  • improve performances of index for Vector #258 (thanks to spebbe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment