lorentz-0.9.1: CHANGES.md
Unreleased
==========
<!-- Append new entries here -->
0.9.1
=====
* [!751](https://gitlab.com/morley-framework/morley/-/merge_requests/751)
+ Add new Edo instruction: `LEVEL`.
* [!741](https://gitlab.com/morley-framework/morley/-/merge_requests/741)
+ Add new Edo instructions: `SHA3` and `KECCAK`.
0.9.0
=====
* [!731](https://gitlab.com/morley-framework/morley/-/merge_requests/731)
Added `GenericStrategy`-ies for compatibility with LIGO.
* [!712](https://gitlab.com/morley-framework/morley/-/merge_requests/712)
Add lenses for Lorentz contract config.
* [!684](https://gitlab.com/morley-framework/morley/-/merge_requests/684)
+ Simplify working with autodoc in contracts (breaking change).
+ `finalizeParamCallingDoc` is now applied automatically when lorentz' `Contract`
is used, no need to call it manually.
0.8.0
=====
* [!671](https://gitlab.com/morley-framework/morley/-/merge_requests/671)
+ Add `TypeHasDoc` instances for `TAddress` and `FutureContract`.
+ Add a generic `instance DocItem (DEntrypoint ep)`.
In case of getting overlapping instances, you have to implement `EntrypointKindHasDoc` instead.
+ Some error messages in doc tests are improved.
+ Some bugfixes for anchors.
+ Cases with contract logic residing outside of entrypoints are now better handled.
* [!665](https://gitlab.com/morley-framework/morley/-/merge_requests/665)
Improve `StorageContains` to work for polymorphic case (when field is marked with `Identity`).
* [!679](https://gitlab.com/morley-framework/morley/-/merge_requests/679)
Add `dupLNamed`.
* [!672](https://gitlab.com/morley-framework/morley/-/merge_requests/672)
+ Add `Packed`, `TSignature` and `Hash` types.
+ `pack` and `unpack` now work with `Packed` instead of `ByteString` (for the sake of better type-safety).
Either use `Packed` type, or `packRaw`/`unpackRaw` instructions.
+ `checkSignature` now works with `Packed` and `TSignature`.
+ `blake2b` and other hashing instructions now work with `Hash`.
+ If necessary, coersions can be used to switch between the mentioned types and raw `ByteString`.
* [!667](https://gitlab.com/morley-framework/morley/-/merge_requests/667)
+ Modify representation of extended lambdas
(arbitrary code used as lambdas is now packed into right-hand combs, not left-hand ones).
+ Add `applicate` macro.
* [!630](https://gitlab.com/morley-framework/morley/-/merge_requests/630)
Use `:` in all library instructions instead of `&`.
* [!652](https://gitlab.com/morley-framework/morley/-/merge_requests/652)
Update the `ContractRegistry` to be able to not require contract name for
all its commands when there is only one contract.
* [!640](https://gitlab.com/morley-framework/morley/-/merge_requests/640)
Change `StoreSubmapOps` to contain no optional methods.
0.7.1
=====
* [!653](https://gitlab.com/morley-framework/morley/-/merge_requests/653)
Added primitives for evaluating `OpSize` in Lorentz.
* [!651](https://gitlab.com/morley-framework/morley/-/merge_requests/651)
Add `dupL`.
0.7.0
=====
* [!629](https://gitlab.com/morley-framework/morley/-/merge_requests/629)
All `UStore` modules has been moved to the [morley-upgradeable](https://gitlab.com/morley-framework/morley-upgradeable/) repository.
Now you have to include that repository to your build and import `Lorentz.UStore`.
* [!610](https://gitlab.com/morley-framework/morley/-/merge_requests/610)
Remove `Lorentz.TestScenario`.
* [!585](https://gitlab.com/morley-framework/morley/-/merge_requests/585)
Add `HasAnnotation` instance for `ChainId`.
0.6.2
=====
* [!589](https://gitlab.com/morley-framework/morley/-/merge_requests/589)
Add `annOptions` method in `HasAnnotation` which can be used to customize
the generated annotations of a type.
+ Add helper functions to use with `annOptions`.
* [!591](https://gitlab.com/morley-framework/morley/-/merge_requests/591)
Add `dupTop2`.
0.6.1
=====
* [!533](https://gitlab.com/morley-framework/morley/-/merge_requests/533)
Add `entrypointDoc`, `typeDoc`, and `errorDoc` quasiquotes which help
generating typeclass instances.
0.6.0
=====
* [!558](https://gitlab.com/morley-framework/morley/-/merge_requests/558)
Added a new `wrapOne` to wrap a value in a constructor with a single field,
because it has the advantage of having an input stack that does not depend on
a type family.
* [!528](https://gitlab.com/morley-framework/morley/-/merge_requests/528)
The generated documentation now contains a sample value of each entrypoint.
+ Allow modification of sample value via `mkDEntrypointExample`.
* [!493](https://gitlab.com/morley-framework/morley/-/merge_requests/493)
Add support for root entrypoint.
+ A contract can now specify whether or not the root annotation should be generated
and which name it should use.
+ `self` and `contract` instructions are able to call the root entrypoint.
0.5.0
=====
* [!530](https://gitlab.com/morley-framework/morley/-/merge_requests/530)
Field annotation are now generated for sum-type in `parameter` and `storage`.
+ It also ensures that it will not generate field annotations that would introduce
extra entrypoints.
* [!371](https://gitlab.com/morley-framework/morley/-/merge_requests/371)
Make `view_` argument accept 2 arguments rather than a pair.
* [!486](https://gitlab.com/morley-framework/morley/-/merge_requests/486)
Add `customGeneric` to derive `Generic` instances with a custom tree structure
and, consequently, `IsoValue` instances with such a structure.
* [!483](https://gitlab.com/morley-framework/morley/-/merge_requests/483)
Add a way to generate field annotations for entrypoint parameter.
* [!470](https://gitlab.com/morley-framework/morley/-/merge_requests/470)
Move `Lorentz.Test` and Hedgehog generators to a new package: `cleveland`.
* [!357](https://gitlab.com/morley-framework/morley/-/merge_requests/357)
Remove deprecated `Lorentz.Store` module and deprecated custom error functionality.
0.4.0
=====
* [!449](https://gitlab.com/morley-framework/morley/-/merge_requests/449)
+ Improve `Lorentz.Test.Integrational` interface.
+ Remove `IntegrationalValidator`, `SuccessValidator`, `validate`,
`composeValidators`, `composeValidatorsList`, `expectAnySuccess`.
+ Add `unexpectedInterpreterError`, `attempt`, `catchExpectedError`.
+ Change type of `expect*`/`tExpect*`/`lExpect*` functions.
They now return `IntegrationalScenario` instead of `SuccessValidator` / `Bool`.
+ Rename `ValidationError` to `TestError`
+ Replace `TestError`'s `UnexpectedExecutorError` constructor with
`InterpreterError` and `UnexpectedInterpreterError`.
* [!432](https://gitlab.com/morley-framework/morley/-/merge_requests/432)
Add `whenNone` to Lorentz.
* [!398](https://gitlab.com/morley-framework/morley/-/merge_requests/398)
Add `StoreHasEntrypoint` class to conveniently use entrypoints as lambdas
stored into `big_map`(s) to make use of lazy evaluation.
* [!409](https://gitlab.com/morley-framework/morley/-/merge_requests/409)
+ Add hedgehog support
* [!303](https://gitlab.com/morley-framework/morley/merge_requests/303)
+ Functions for working with `UStore` from Haskell world (e.g. `fillUStore`) now have a different constraint.
+ `UStore` templates are now documented and thus may require instance of the respective typeclass.
0.3.0
=====
* [!417](https://gitlab.com/morley-framework/morley/-/merge_requests/417)
Change the license to MIT.
* [!360](https://gitlab.com/morley-framework/morley/-/merge_requests/360)
+ Add `compileLorentzWithOptions` function that accepts optional Michelson
optimizer configuration and string transformer function. Changed `compileLorentz` to call the
optimizer with the default configuration.
+ Add `Lorentz.Contract` data type as a wrapper for `Lorentz.ContractCode` and
`Lorentz.CompilationOptions`. Require that all contracts are wrapped in this data type.
* [!354](https://gitlab.com/morley-framework/morley/-/merge_requests/354)
+ Add `constructStack` function that constructs a datatype from fields on the stack.
+ Add `deconstruct` function that deconstructs a datatype to its fields on the stack.
* [!358](https://gitlab.com/morley-framework/morley/-/merge_requests/358)
Removed deprecated `STEPS_TO_QUOTA` instruction.
* [!337](https://gitlab.com/morley-framework/morley/-/merge_requests/337)
Added `comment`, `commentAroundFun` and `commentAroundStmt` to generate comments in Michelson code.
0.2.0
=====
* [!346](https://gitlab.com/morley-framework/morley/-/merge_requests/346)
Added `docStorage` and `contractGeneralDefault`.
* [!306](https://gitlab.com/morley-framework/morley/-/merge_requests/306)
Deprecated `mapMigrationCode` in favor of `MapLorentzInstr`.
* [!326](https://gitlab.com/morley-framework/morley/-/merge_requests/326)
Updated contract registry (`Lorentz.ContractRegistry`):
+ Now it can print initial storage apart from contract and documentation.
+ Some extra fields were added to `ContractInfo`.
+ Logic is captured in the `runContractRegistry` function.
+ If you don't specify output file, we will use a file with name constructed from contract name. Pass `-` if you want `stdout`.
* [!245](https://gitlab.com/morley-framework/morley/-/merge_requests/245) Added `HasTypeAnn` instance for `FutureContract arg`.
* [!294](https://gitlab.com/morley-framework/morley/-/merge_requests/294)
+ Added `Paths_*` modules to `autogen-modules` in cabal files. Removed `-O0`
+ from default GHC options. Please set `ghc-options` in your `stack.yaml` or
`cabal.project.local`.
* [!271](https://gitlab.com/morley-framework/morley/merge_requests/271) Renamed
'Contract' to 'ContractCode', and appended "Code" to the names of two functions:
'convertContract' and 'printTypedContract'
* [!267](https://gitlab.com/morley-framework/morley/-/merge_requests/267)
+ Retain type annotations in entrypoints derivation.
+ Remove overlappable `HasTypeAnn` instance defined for nearly each type.
Add `default` `getTypeAnn` method definition instead and manually define `HasTypeAnn` instance for each type instead (trivially).
When you create a new data type with `IsoValue` instance, you usually have to derive `HasTypeAnn` as well.
0.1.0
=====
Initial release extracted from the [morley](https://hackage.haskell.org/package/morley) package.