@hackage morley0.1.0.2

Developer tools for the Michelson Language

Morley: Developer tools for the Michelson Language

Morley is a library to make writing smart contracts in Michelson pleasant and effective.

I: A reimplementation of the Michelson Language in Haskell

It consists of the following parts:

  • Tezos.* hierarchy is designed to implement cryptographic primitives, string and byte formats, and any other functionality specific to the Tezos protocol which is required for testing/execution of Michelson contracts, but is used not only by Michelson.
  • Michelson.Untyped and Michelson.Typed hierarchies define Haskell data types that assemble a Michelson contract. See michelsonTypes.md.
  • Michelson.TypeCheck: A typechecker that validates Michelson contracts according to Michelson's typing rules. Essentially it performs conversion from untyped representation to the typed one. See morleyTypechecker.md.
  • Michelson.Intepreter: An intepreter for Michelson contracts which doesn't perform any side effects. See morleyInterpreter.md.
  • Morley.Types: Types for macros, syntactic sugar and other extensions described in the next chapter.
  • Morley.Parser A parser to turn a .tz or .mtz file (.mtz is a Michelson contract with Morley extensions) into a Haskell ADT.
  • Morley.Runtime: A high-level interface to Morley functionality, see morleyRuntime.md.

II: Morley extensions

The Morley Language is a superset of the Michelson language, which means that each Michelson contract is also a valid Morley contract but not vice versa. There are several extensions which make it more convenient to write Michelson contracts and test them. See the document about these extensions. Also there is a transpiler from Morley to Michelson.

III: Morley-to-Michelson transpiler

Coming soon, see TM-58.

IV: Testing EDSL

Coming soon, see TM-77.

Issue Tracker

We use YouTrack as our issue tracker. You can login using your GitHub account to leave a comment or create a new issue.

For Contributors

Please see CONTRIBUTING.md for more information.