Changelog of @hackage/knit-haskell 0.4.0.0

v 0.4.0.0

  • Added absorbPandocMonad :: PandocEffects r => (forall m. PandocMonad m => m a) -> Sem r a to Knit.Effect.PandocMonad
  • Removed (orphan) instances: PandocMonad (Sem r) and MonadError PandocError (Sem r) in favor of using absorbPandocMonad when required.
  • Deprecated name "Random" in favor of "RandomFu" for clarity and eventual consistency with Polysemy
  • Added absorbMonadRandom :: Member RandomFu r => (forall m. MonadRandom m => m a) -> Sem r a to allow some interoperation with actions constrained by MonadRandom
  • Removed orphan Random.MonadRandom instance from Knit.Effect.RandomFu because orphan instances are bad.
  • Changed return type of Knit.Report.knitError to Sem r a (from Sem r ())
  • Bumped lower bound on polysemy-plugin (because of a buggy version)
  • Bumped lower bound on polysemy
  • Removed plots example in "SimpleExample" and added a diagrams one. Will add plots back once a version issue with containers is resolved.

v 0.3.0.1

  • Examples were "executables" and are now "tests" so that depending on knit-haskell does not pull in the dependencies of the examples.

v 0.3.0.0

  • Added exports of "Colonnade" and "Text.Blaze.Colonnade" to "Knit.Report.Input.Table.Colonnade"
  • Added "knitError" function to Knit.Report to allow user throwing of errors. These will become PandocSomeError and handled as a PandocError.
  • Lowered bound on containers (to 0.5.0) to accomodate use of Plots.
  • Added Knit.Report.Input.Visualization.Diagrams. Adds Diagrams from diagrams-lib via SVG backend.
  • Added some more re-exports (Colonnade, Diagrams.Prelude) from Knit.Report to simplify imports on use.
  • Added an optional figure caption argument to Hvega and Diagrams inputs. (this is a breaking change since it requires another argument).
  • Added a state effect wrapper to facilitate getting unused ids for figures, etc.
  • Changed id argument for Hvega and Diagrams visualizations to "Maybe Text" from Text. Will use built-in facilities for unique ids when set to Nothing.
  • Visualization "addXXX" functions now return the figure id (as "Sem r Text") so it can be referred to elsewhere.
  • Added KnitOne and KnitMany constraint-type-aliases to Knit.Report to simplify constraining doc producing functions.
  • Updated examples. Added a diagrams example to SimpleExample and fixed id and caption arguments throughout.
  • Bumped upper bounds (network)

v 0.2.0.0

  • Documentation Fixes
  • Added export of newPandoc and NamedDoc to Knit.Report to facilitate multi-doc use.
  • Removed redundant imports from Knit.Report.Input.Table.Colonnade
  • Added a multi-doc example
  • (internal) Removed odd, and no longer necessary, "LastMember" constraint from knit functions.
  • Updated effects for polysemy 1.2

v 0.1.0.0

  • Initial version