Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Update documentation #268

@chrisnevers

Description

@chrisnevers

Looking through the Getting Started docs and noticed there needs some updates.

One

This example doesn't compile:

let _ = print "hello, world!"

It gives the following error:

main.ml[3:5 ..3:5]: error (E2018)
  No instance for show string arising in the binding
  │ 
3 │ let _ = print "hello, world!"
  │     ^
  • Note: this constraint can not be quantified over
    because it is impossible to quantify over pattern bindings

The following message has a detailed explanation: 2018.
Try 'amc explain 2018' to see it.
make: *** [build] Error 1

Two

The example doesn't compile:

$ amc mod2.ml mod1.ml main.ml -o main.lua

The compile option needs to be specified:

$ amc compile mod2.ml mod1.ml main.ml -o main.lua

Other

Could you please add more docs for the std library and include more examples in the Everything You Need To Know To Write Amulet for example how to create/use exceptions.

Thanks for interesting project, I look forward to using it!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions