You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
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!
The text was updated successfully, but these errors were encountered:
- Update amc usage:
- repl instead of --repl
- As we have a module system, we no longer take multiple files.
- Suggest using let () = instead of let _`=. Petty, but good practice.
- Use put_line instead of print.
- Note that we require a `rec` keyword.
- Update monad syntax
See amuletml/amulet#268
Hi.
I would like to contribute to the documentation.
I am currently using Amulet intensively on one project. So I have many aha moments that could be used.
On the other hand, sometimes I don't quite understand some constructions. (I'm more of a Haskellist.)
What if we opened a Wiki in this repository? I could add different fragments there. Which could act as inspiration for official documentation.
Looking through the
Getting Started
docs and noticed there needs some updates.One
This example doesn't compile:
It gives the following error:
Two
The example doesn't compile:
The
compile
option needs to be specified: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!
The text was updated successfully, but these errors were encountered: