@@ -23,7 +23,7 @@ const ROC_HOSTED_FNS: &[HostedFn] = &[
2323 HostedFn {
2424 name : "envList" ,
2525 arg_types : & [ ] ,
26- ret_type : "roc_std::RocList<(roc_std::RocStr, roc_std::RocStr)>" ,
26+ ret_type : "roc_std::RocResult<roc_std:: RocList<(roc_std::RocStr, roc_std::RocStr)>, ( )>" ,
2727 } ,
2828 HostedFn {
2929 name : "exePath" ,
@@ -38,42 +38,32 @@ const ROC_HOSTED_FNS: &[HostedFn] = &[
3838 HostedFn {
3939 name : "cwd" ,
4040 arg_types : & [ ] ,
41- ret_type : "roc_std::RocList<u8>" ,
41+ ret_type : "roc_std::RocResult<roc_std:: RocList<u8>,() >" ,
4242 } ,
4343 HostedFn {
4444 name : "stdoutLine" ,
4545 arg_types : & [ "&roc_std::RocStr" ] ,
46- ret_type : "() " ,
46+ ret_type : "roc_std::RocResult<(),RocStr> " ,
4747 } ,
4848 HostedFn {
4949 name : "stdoutWrite" ,
5050 arg_types : & [ "&roc_std::RocStr" ] ,
51- ret_type : "()" ,
52- } ,
53- HostedFn {
54- name : "stdoutFlush" ,
55- arg_types : & [ ] ,
56- ret_type : "()" ,
51+ ret_type : "roc_std::RocResult<(),RocStr>" ,
5752 } ,
5853 HostedFn {
5954 name : "stderrLine" ,
6055 arg_types : & [ "&roc_std::RocStr" ] ,
61- ret_type : "() " ,
56+ ret_type : "roc_std::RocResult<(),RocStr> " ,
6257 } ,
6358 HostedFn {
6459 name : "stderrWrite" ,
6560 arg_types : & [ "&roc_std::RocStr" ] ,
66- ret_type : "()" ,
67- } ,
68- HostedFn {
69- name : "stderrFlush" ,
70- arg_types : & [ ] ,
71- ret_type : "()" ,
61+ ret_type : "roc_std::RocResult<(),RocStr>" ,
7262 } ,
7363 HostedFn {
7464 name : "commandOutput" ,
7565 arg_types : & [ "&roc_app::InternalCommand" ] ,
76- ret_type : "roc_app::InternalOutput" ,
66+ ret_type : "roc_std::RocResult< roc_app::InternalOutput,()> " ,
7767 } ,
7868 HostedFn {
7969 name : "commandStatus" ,
@@ -83,45 +73,45 @@ const ROC_HOSTED_FNS: &[HostedFn] = &[
8373 HostedFn {
8474 name : "posixTime" ,
8575 arg_types : & [ ] ,
86- ret_type : "roc_std::U128" ,
76+ ret_type : "roc_std::RocResult<roc_std:: U128,()> " ,
8777 } ,
8878 HostedFn {
8979 name : "tcpConnect" ,
9080 arg_types : & [ "&roc_std::RocStr" , "u16" ] ,
91- ret_type : "roc_app::ConnectResult" ,
81+ ret_type : "roc_std::RocResult< roc_app::ConnectResult,()> " ,
9282 } ,
9383 HostedFn {
9484 name : "tcpClose" ,
9585 arg_types : & [ "*mut std::io::BufReader<std::net::TcpStream>" ] ,
96- ret_type : "() " ,
86+ ret_type : "roc_std::RocResult<(),()> " ,
9787 } ,
9888 HostedFn {
9989 name : "tcpReadUpTo" ,
10090 arg_types : & [ "usize" , "*mut std::io::BufReader<std::net::TcpStream>" ] ,
101- ret_type : "roc_app::ReadResult" ,
91+ ret_type : "roc_std::RocResult< roc_app::ReadResult,()> " ,
10292 } ,
10393 HostedFn {
10494 name : "tcpReadExactly" ,
10595 arg_types : & [ "usize" , "*mut std::io::BufReader<std::net::TcpStream>" ] ,
106- ret_type : "roc_app::ReadExactlyResult" ,
96+ ret_type : "roc_std::RocResult< roc_app::ReadExactlyResult,()> " ,
10797 } ,
10898 HostedFn {
10999 name : "tcpReadUntil" ,
110100 arg_types : & [ "u8" , "*mut std::io::BufReader<std::net::TcpStream>" ] ,
111- ret_type : "roc_app::ReadResult" ,
101+ ret_type : "roc_std::RocResult< roc_app::ReadResult,()> " ,
112102 } ,
113103 HostedFn {
114104 name : "tcpWrite" ,
115105 arg_types : & [
116106 "&roc_std::RocList<u8>" ,
117107 "*mut std::io::BufReader<std::net::TcpStream>" ,
118108 ] ,
119- ret_type : "roc_app::WriteResult" ,
109+ ret_type : "roc_std::RocResult< roc_app::WriteResult,()> " ,
120110 } ,
121111 HostedFn {
122112 name : "sleepMillis" ,
123113 arg_types : & [ "u64" ] ,
124- ret_type : "() " ,
114+ ret_type : "roc_std::RocResult<(),()> " ,
125115 } ,
126116 HostedFn {
127117 name : "fileWriteUtf8" ,
0 commit comments