Skip to content

Commit 27bc02d

Browse files
committed
docs: show how to use the stdlib
1 parent c1758b3 commit 27bc02d

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ Eshell V11.0.3 (abort with ^G)
5959
<<"world">>
6060
```
6161
62+
To make use of the entire standard library you'll have to run `erlc` to compile it:
63+
64+
```sh
65+
# after unzipping
66+
$ erlc ./caramel/lib/caramel/stdlib/beam/*.erl
67+
$ erl -pa ./caramel/lib/stdlib/beam
68+
Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:64:64] [ds:64:64:10] [async-threads:1] [hipe]
69+
70+
Eshell V11.0.3 (abort with ^G)
71+
1> caramel_runtime:binary_concat(<<"hello, ">>, <<"world!">>).
72+
<<"hello, world!">>
73+
```
74+
6275
## Examples
6376
6477
You can find several examples in [`./examples`](./examples), and in

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.8
1+
0.0.14

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
(depends
2525
(dune (>= "2.7"))
2626
(ocaml (>= "4.11.1"))
27+
cmdliner
2728
menhir
2829
ppx_sexp_conv
2930
sexplib

erlang.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ license: "Apache-2.0"
1414
homepage: "https://github.com/AbstractMachinesLab/caramel"
1515
bug-reports: "https://github.com/AbstractMachinesLab/caramel/issues"
1616
depends: [
17-
"dune" {>= "2.7" & >= "2.7"}
17+
"dune" {>= "2.7" }
1818
"ocaml" {>= "4.11.1"}
19+
"cmdliner"
1920
"menhir"
2021
"ppx_sexp_conv"
2122
"sexplib"

0 commit comments

Comments
 (0)