Skip to content

Commit

Permalink
docs: show how to use the stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Nov 1, 2020
1 parent c1758b3 commit 27bc02d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ Eshell V11.0.3 (abort with ^G)
<<"world">>
```
To make use of the entire standard library you'll have to run `erlc` to compile it:
```sh
# after unzipping
$ erlc ./caramel/lib/caramel/stdlib/beam/*.erl
$ erl -pa ./caramel/lib/stdlib/beam
Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:64:64] [ds:64:64:10] [async-threads:1] [hipe]
Eshell V11.0.3 (abort with ^G)
1> caramel_runtime:binary_concat(<<"hello, ">>, <<"world!">>).
<<"hello, world!">>
```
## Examples
You can find several examples in [`./examples`](./examples), and in
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.8
0.0.14
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
(depends
(dune (>= "2.7"))
(ocaml (>= "4.11.1"))
cmdliner
menhir
ppx_sexp_conv
sexplib
Expand Down
3 changes: 2 additions & 1 deletion erlang.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ license: "Apache-2.0"
homepage: "https://github.com/AbstractMachinesLab/caramel"
bug-reports: "https://github.com/AbstractMachinesLab/caramel/issues"
depends: [
"dune" {>= "2.7" & >= "2.7"}
"dune" {>= "2.7" }
"ocaml" {>= "4.11.1"}
"cmdliner"
"menhir"
"ppx_sexp_conv"
"sexplib"
Expand Down

0 comments on commit 27bc02d

Please sign in to comment.