mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
Use long URL for CLI platform in tutorial
This commit is contained in:
parent
63c1b14552
commit
0410f82e99
@ -172,9 +172,9 @@ to use them for more than that.</p>
|
||||
|
||||
<section><h2 id="building-an-application"><a href="#building-an-application">Building an Application</a></h2>
|
||||
<p>Let's move out of the REPL and create our first Roc application!</p>
|
||||
<p>Make a new file named <code>hello.roc</code> and put this inside it:</p>
|
||||
<samp><span class="kw">app</span> <span class="str">"hello"</span>
|
||||
<span class="kw">packages</span> <span class="brace">{</span> pf: <span class="str">roc-lang.org/basic-cli 1.0.0</span> <span class="brace">}</span>
|
||||
<p>Make a file named <code>hello.roc</code> and put this in it: <i>(note the long URL - a future release of the language will make this more concise, but for now, make sure you get the whole thing!)</i></p>
|
||||
<samp style="overflow:auto"><span class="kw">app</span> <span class="str">"hello"</span>
|
||||
<span class="kw">packages</span> <span class="brace">{</span> pf: <span class="str">"https://roc-lang.org/basic-cli/1.0.0/oUkxSOI9zFGtSoIaMB40QPdrXphr1p1780eiui2iO9Mz.rp1"</span> <span class="brace">}</span>
|
||||
<span class="kw">imports</span> <span class="brace">[</span>pf.Stdout, pf.Program<span class="brace">]</span>
|
||||
<span class="kw">provides</span> <span class="brace">[</span>main<span class="brace">]</span> <span class="kw">to</span> pf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user