Diagrams/Dev/Migrate1.4

From HaskellWiki
< Diagrams‎ | Dev
Revision as of 19:43, 16 October 2016 by Byorgey (talk | contribs) (Create 1.4 migration page: start with snugBL etc.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes breaking API changes between diagrams 1.3 and 1.4, along with explanations of how to migrate to the new 1.4 API.

The 1.4 release is actually quite light on breaking API changes; most of the changes were additions and bug fixes. Below are the things we are aware of; feel free to add new things below, or create an issue if you are unsure.

Snugs

The snugBL, snugBR, snugTR and snugBR functions have been deprecated, since they were unintuitive, ad-hoc, and not particularly useful, especially since e.g. snugL and snugB do not commute (so in theory snugBL and snugLB would be different). If you were using these functions, you can switch to using a composition like snugB . snugL directly, or use snug with a direction vector. See the discussion at diagrams-lib issue #250 for more details.