on master help sign in
Merge pull request #3895 from undefdev/patch-1
89c953aNiklas Larsson
docs/reference/codegen.rst+10−10
@@ -27,16 +27,6 @@ issue the following command:
27 $ idris --codegen javascript hello.idr -o hello.js
27 $ idris --codegen javascript hello.idr -o hello.js
28
28
29
29
30−Generating code for NodeJS is slightly different. Idris outputs a
31−JavaScript file that can be directly executed via node.
32−
33−::
34−
35− $ idris --codegen node hello.idr -o hello
36− $ ./hello
37− Hello world
38−
39−
40Idris can produce very big chunks of JavaScript code (hello world
30Idris can produce very big chunks of JavaScript code (hello world
41weighs in at 1500 lines). However, the generated code can be minified
31weighs in at 1500 lines). However, the generated code can be minified
42using the `closure-compiler
32using the `closure-compiler
@@ -50,6 +40,16 @@ using the `closure-compiler
50Node.js
40Node.js
51-------
41-------
52
42
43+Generating code for NodeJS is slightly different. Idris outputs a
44+JavaScript file that can be directly executed via node.
45+
46+::
47+
48+ $ idris --codegen node hello.idr -o hello
49+ $ ./hello
50+ Hello world
51+
52+
53
53
54Third Party
54Third Party
55============
55============