title |
---|
Comparison to OCaml |
If you come from OCaml or are a newcomer reading a tutorial written on OCaml, this guide's for you! But don't forget that reason-tools can convert between OCaml and Reason syntax on the fly.
OCaml | Reason |
---|
contract FlurksMarket is Context, ReentrancyGuard, Pausable, Ownable { | |
IERC721 flurksContract; // instance of the Flurks contract | |
struct Offer { | |
bool isForSale; | |
uint flurkID; | |
address seller; | |
uint minValue; // in ether | |
address onlySellTo; | |
} |
// SPDX-License-Identifier: MIT | |
// Archetype v0.2.0 | |
// | |
// d8888 888 888 | |
// d88888 888 888 | |
// d88P888 888 888 | |
// d88P 888 888d888 .d8888b 88888b. .d88b. 888888 888 888 88888b. .d88b. | |
// d88P 888 888P" d88P" 888 "88b d8P Y8b 888 888 888 888 "88b d8P Y8b | |
// d88P 888 888 888 888 888 88888888 888 888 888 888 888 88888888 | |
// d8888888888 888 Y88b. 888 888 Y8b. Y88b. Y88b 888 888 d88P Y8b. |
~/Sites/projects/melange » esy -v -v -v jplew@JPs-MacBook-Pro | |
debug checkStaleness /Users/jplew/Sites/projects/melange/esy.lock/index.json: false | |
debug checkStaleness /Users/jplew/Sites/projects/melange/esy.json: true | |
debug cache is stale, discarding | |
debug reading project cache: 20.388842ms | |
debug fetching metadata path:./esy.json | |
debug not an override /Users/jplew/Sites/projects/melange: error: no such field: source | |
debug solve config: { Config.installCfg = | |
{ Config.sourceArchivePath = None; |
jplew@DESKTOP-ELKO2NK:~/Sites/projects/melange$ esy -v -v -v | |
debug checkStaleness /home/jplew/Sites/projects/melange/esy.json: false | |
debug checkStaleness /home/jplew/Sites/projects/melange/esy.lock/index.json: false | |
debug using cache | |
debug reading project cache: 11.265993ms | |
info esy 0.6.8 (using esy.json) | |
debug SolutionLock.ofPath /home/jplew/Sites/projects/melange/esy.lock | |
debug SolutionLock.ofPath /home/jplew/Sites/projects/melange/esy.lock | |
info using [email protected] | |
debug resolving melange@github:melange-re/melange |
$ esy x Fetch | |
File "dune-project", line 5, characters 11-14: | |
5 | (using fmt 1.2) | |
^^^ | |
Warning: Version 1.2 of integration with automatic formatters is not | |
supported until version 1.11 of the dune language. | |
There are no supported versions of this extension in version 1.0 of the dune | |
language. | |
# Unformatted Error Output: |
$ esy b dune exec bin/fetch.exe | |
info building @opam/piaf@github:anmonteiro/piaf:piaf.opam#7f6e491dc@d41d8cd9 | |
error: build failed with exit code: 1 | |
build log: | |
# esy-build-package: building: @opam/piaf@github:anmonteiro/piaf:piaf.opam#7f6e491dc | |
# esy-build-package: pwd: /Users/jplew/.esy/3/b/opam__s__piaf-dcdb3bb3 | |
# esy-build-package: running: 'dune' 'build' '-p' 'piaf' '-j' '4' | |
ocamlc lib/.piaf.objs/byte/piaf__Util.{cmi,cmo,cmt} (exit 2) | |
(cd _build/default && /Users/jplew/.esy/3___________________________________________________________________/i/ocaml-4.6.1000-a4275564/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.piaf.objs/byte -I /Users/jplew/.esy/3___________________________________________________________________/i/ocaml-4.6.1000-a4275564/lib/ocaml/threads -I /Users/jplew/.esy/3___________________________________________________________________/i/opam__s__angstrom-opam__c__0.14.1-f5362997/lib/angstrom -I /Users/jplew/.esy/3_________________________________________________________ |
title |
---|
Comparison to OCaml |
If you come from OCaml or are a newcomer reading a tutorial written on OCaml, this guide's for you! But don't forget that reason-tools can convert between OCaml and Reason syntax on the fly.
OCaml | Reason |
---|
Downloading 1102 deployment files... | |
Installing build runtime... | |
Build runtime installed: 538.617ms | |
Installing build runtime... | |
Looking up build cache... | |
Build runtime installed: 716.592ms | |
Installing dependencies... | |
Installing build runtime... | |
Looking up build cache... | |
Build runtime installed: 859.430ms |
Running with gitlab-runner 12.1.0 (de7731dd) | |
on uriel c86c7e91 | |
Using Docker executor with image cypress/base:10 ... | |
Pulling docker image cypress/base:10 ... | |
Using docker image sha256:e953bc6b70f097730451eb5c33c05a18a7471f1c2cd840e5923224eefa064cdd for cypress/base:10 ... | |
Running on runner-c86c7e91-project-326-concurrent-0 via ip-10-0-31-218... | |
Fetching changes... | |
Reinitialized existing Git repository in /builds/ops/www/.git/ | |
From https://git.cto.ai/ops/www | |
* [new ref] refs/pipelines/56908 -> refs/pipelines/56908 |