-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
unison.scroll
69 lines (57 loc) · 1.32 KB
/
unison.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import ../code/conceptPage.scroll
id unison
name unison
appeared 2015
tags pl
website http://unisonweb.org/
isOpenSource true
centralPackageRepositoryCount 0
repoStats
firstCommit 2013
commits 14701
committers 111
files 1405
reference https://www.youtube.com/watch?v=rp_Eild1aq8
rijuRepl https://riju.codes/unison
example
use io
runProg: '{IO, Exception} a -> '{IO} ()
runProg f = 'let
printErr err = match err with
Failure _ errMsg _ -> handle putBytes (stdHandle StdErr) (toUtf8 errMsg) with cases
{raise _ -> _} -> ()
{_} -> ()
match catch f with
Left err -> printErr err
Right _ -> ()
main: '{IO} ()
main = runProg 'let
printLine "Hello, world!"
example
-- comments start with `--`
-- alice : Node, bob : Node
x = factorial 6
Remote.transfer alice
y = foo x -- happens on `alice` node
Remote.transfer bob
bar x y -- happens on `bob` node
twitter https://twitter.com/unisonweb
githubRepo https://github.com/unisonweb/unison
firstCommit 2013
stars 4472
forks 234
subscribers 115
created 2015
updated 2022
description A friendly programming language from the future
issues 807
lineCommentToken --
hasLineComments true
-- A comment
hasComments true
-- A comment
hasSemanticIndentation false
domainName unisonweb.org
registered 2014
isbndb 0
semanticScholar 0