Skip to content

Commit 0db50e2

Browse files
committed
update moon info for new release
1 parent 891e91a commit 0db50e2

File tree

10 files changed

+10
-117
lines changed

10 files changed

+10
-117
lines changed

src/fs/pkg.generated.mbti

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,9 @@ fn File::curr_pos(Self) -> Int64 raise
6666
fn File::fd(Self) -> Int
6767
fn File::kind(Self) -> FileKind
6868
fn File::mtime(Self) -> (Int64, Int) raise
69-
async fn File::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
70-
async fn File::read_all(Self) -> &@io.Data // from trait `@io.Reader`
71-
async fn File::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
7269
fn File::seek(Self, Int64, mode~ : SeekMode) -> Int64 raise
7370
fn File::size(Self) -> Int64 raise
7471
async fn File::sync(Self, only_data? : Bool) -> Unit
75-
async fn File::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
76-
async fn File::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
77-
async fn File::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
78-
#deprecated
79-
async fn File::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
8072
impl @io.Reader for File
8173
impl @io.Writer for File
8274

@@ -90,11 +82,6 @@ pub(all) enum FileKind {
9082
BlockDevice
9183
CharDevice
9284
}
93-
fn FileKind::equal(Self, Self) -> Bool // from trait `Eq`
94-
#deprecated
95-
fn FileKind::op_equal(Self, Self) -> Bool // from trait `Eq`
96-
fn FileKind::output(Self, &Logger) -> Unit // from trait `Show`
97-
fn FileKind::to_string(Self) -> String // from trait `Show`
9885
impl Eq for FileKind
9986
impl Show for FileKind
10087

src/http/pkg.generated.mbti

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ pub suberror HttpProtocolError {
2121
HttpVersionNotSupported(String)
2222
NotImplemented
2323
}
24-
fn HttpProtocolError::output(Self, &Logger) -> Unit // from trait `Show`
25-
fn HttpProtocolError::to_string(Self) -> String // from trait `Show`
2624
impl Show for HttpProtocolError
2725

2826
pub suberror URIParseError {
2927
InvalidFormat
3028
UnsupportedProtocol(String)
3129
}
32-
fn URIParseError::output(Self, &Logger) -> Unit // from trait `Show`
33-
fn URIParseError::to_string(Self) -> String // from trait `Show`
3430
impl Show for URIParseError
3531

3632
// Types and methods
@@ -42,16 +38,8 @@ async fn Client::flush(Self) -> Unit
4238
async fn Client::get(Self, String, extra_headers? : Map[String, String], body? : &@io.Data) -> Response
4339
async fn Client::post(Self, String, &@io.Data, extra_headers? : Map[String, String]) -> Response
4440
async fn Client::put(Self, String, &@io.Data, extra_headers? : Map[String, String]) -> Response
45-
async fn Client::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
46-
async fn Client::read_all(Self) -> &@io.Data // from trait `@io.Reader`
47-
async fn Client::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
4841
async fn Client::request(Self, RequestMethod, String, extra_headers? : Map[String, String]) -> Unit
4942
async fn Client::skip_response_body(Self) -> Unit
50-
async fn Client::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
51-
async fn Client::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
52-
async fn Client::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
53-
#deprecated
54-
async fn Client::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
5543
impl @io.Reader for Client
5644
impl @io.Writer for Client
5745

@@ -78,11 +66,6 @@ pub(all) enum RequestMethod {
7866
Trace
7967
Patch
8068
}
81-
fn RequestMethod::equal(Self, Self) -> Bool // from trait `Eq`
82-
#deprecated
83-
fn RequestMethod::op_equal(Self, Self) -> Bool // from trait `Eq`
84-
fn RequestMethod::output(Self, &Logger) -> Unit // from trait `Show`
85-
fn RequestMethod::to_string(Self) -> String // from trait `Show`
8669
impl Eq for RequestMethod
8770
impl Show for RequestMethod
8871

@@ -97,17 +80,9 @@ fn ServerConnection::close(Self) -> Unit
9780
async fn ServerConnection::end_response(Self) -> Unit
9881
async fn ServerConnection::flush(Self) -> Unit
9982
fn ServerConnection::new(@socket.Tcp, headers? : Map[String, String]) -> Self
100-
async fn ServerConnection::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
101-
async fn ServerConnection::read_all(Self) -> &@io.Data // from trait `@io.Reader`
102-
async fn ServerConnection::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
10383
async fn ServerConnection::read_request(Self) -> Request
10484
async fn ServerConnection::send_response(Self, Int, String, extra_headers? : Map[String, String]) -> Unit
10585
async fn ServerConnection::skip_request_body(Self) -> Unit
106-
async fn ServerConnection::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
107-
async fn ServerConnection::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
108-
async fn ServerConnection::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
109-
#deprecated
110-
async fn ServerConnection::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
11186
impl @io.Reader for ServerConnection
11287
impl @io.Writer for ServerConnection
11388

src/internal/coroutine/pkg.generated.mbti

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,12 @@ async fn suspend() -> Unit
2222

2323
// Errors
2424
pub(all) suberror Cancelled
25-
fn Cancelled::output(Self, &Logger) -> Unit // from trait `Show`
26-
fn Cancelled::to_string(Self) -> String // from trait `Show`
2725
impl Show for Cancelled
2826

2927
// Types and methods
3028
type Coroutine
3129
fn Coroutine::cancel(Self) -> Unit
3230
fn Coroutine::check_error(Self) -> Unit raise
33-
fn Coroutine::equal(Self, Self) -> Bool // from trait `Eq`
34-
fn Coroutine::hash(Self) -> Int // from trait `Hash`
35-
fn Coroutine::hash_combine(Self, Hasher) -> Unit // from trait `Hash`
36-
#deprecated
37-
fn Coroutine::op_equal(Self, Self) -> Bool // from trait `Eq`
3831
fn Coroutine::unwrap(Self) -> Unit raise
3932
async fn Coroutine::wait(Self) -> Unit
4033
fn Coroutine::wake(Self) -> Unit

src/io/pkg.generated.mbti

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ package "moonbitlang/async/io"
55

66
// Errors
77
pub suberror ReaderClosed
8-
fn ReaderClosed::output(Self, &Logger) -> Unit // from trait `Show`
9-
fn ReaderClosed::to_string(Self) -> String // from trait `Show`
108
impl Show for ReaderClosed
119

1210
// Types and methods
@@ -17,21 +15,13 @@ async fn[R : Reader] BufferedReader::find_opt(Self[R], Bytes) -> Int?
1715
fn[R] BufferedReader::new(R) -> Self[R]
1816
async fn[R : Reader] BufferedReader::op_as_view(Self[R], start? : Int, end~ : Int) -> BytesView
1917
async fn[R : Reader] BufferedReader::op_get(Self[R], Int) -> Byte
20-
async fn[R : Reader] BufferedReader::read(Self[R], FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `Reader`
21-
async fn[R : Reader] BufferedReader::read_all(Self[R]) -> &Data // from trait `Reader`
22-
async fn[R : Reader] BufferedReader::read_exactly(Self[R], Int) -> Bytes // from trait `Reader`
2318
async fn[R : Reader] BufferedReader::read_line(Self[R]) -> String?
2419
impl[R : Reader] Reader for BufferedReader[R]
2520

2621
type BufferedWriter[W]
2722
fn[W] BufferedWriter::capacity(Self[W]) -> Int
2823
async fn[W : Writer] BufferedWriter::flush(Self[W]) -> Unit
2924
fn[W] BufferedWriter::new(W, size? : Int) -> Self[W]
30-
async fn[W : Writer] BufferedWriter::write(Self[W], &Data) -> Unit // from trait `Writer`
31-
async fn[W : Writer] BufferedWriter::write_once(Self[W], Bytes, offset~ : Int, len~ : Int) -> Int // from trait `Writer`
32-
async fn[W : Writer] BufferedWriter::write_reader(Self[W], &Reader) -> Unit // from trait `Writer`
33-
#deprecated
34-
async fn[W : Writer] BufferedWriter::write_string(Self[W], StringView, encoding~ : Encoding) -> Unit // from trait `Writer`
3525
impl[W : Writer] Writer for BufferedWriter[W]
3626

3727
pub(all) enum Encoding {

src/os_error/pkg.generated.mbti

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ fn OSError::is_EEXIST(Self) -> Bool
1717
fn OSError::is_EINTR(Self) -> Bool
1818
fn OSError::is_ENOENT(Self) -> Bool
1919
fn OSError::is_nonblocking_io_error(Self) -> Bool
20-
fn OSError::output(Self, &Logger) -> Unit // from trait `Show`
21-
fn OSError::to_string(Self) -> String // from trait `Show`
2220
impl Show for OSError
2321

2422
// Types and methods

src/pipe/pkg.generated.mbti

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@ let stdout : PipeWrite
2323
type PipeRead
2424
fn PipeRead::close(Self) -> Unit
2525
fn PipeRead::fd(Self) -> Int
26-
async fn PipeRead::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
27-
async fn PipeRead::read_all(Self) -> &@io.Data // from trait `@io.Reader`
28-
async fn PipeRead::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
2926
impl @io.Reader for PipeRead
3027

3128
type PipeWrite
3229
fn PipeWrite::close(Self) -> Unit
3330
fn PipeWrite::fd(Self) -> Int
34-
async fn PipeWrite::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
35-
async fn PipeWrite::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
36-
async fn PipeWrite::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
37-
#deprecated
38-
async fn PipeWrite::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
3931
impl @io.Writer for PipeWrite
4032

4133
// Type aliases

src/pkg.generated.mbti

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// Generated using `moon info`, DON'T EDIT IT
22
package "moonbitlang/async"
33

4+
import(
5+
"moonbitlang/async/aqueue"
6+
"moonbitlang/async/semaphore"
7+
)
8+
49
// Values
510
fn now() -> Int64
611

@@ -25,13 +30,9 @@ async fn[X] with_timeout_opt(Int, async () -> X) -> X?
2530

2631
// Errors
2732
pub suberror AlreadyTerminated
28-
fn AlreadyTerminated::output(Self, &Logger) -> Unit // from trait `Show`
29-
fn AlreadyTerminated::to_string(Self) -> String // from trait `Show`
3033
impl Show for AlreadyTerminated
3134

3235
pub suberror TimeoutError
33-
fn TimeoutError::output(Self, &Logger) -> Unit // from trait `Show`
34-
fn TimeoutError::to_string(Self) -> String // from trait `Show`
3536
impl Show for TimeoutError
3637

3738
// Types and methods
@@ -54,9 +55,9 @@ fn[X] TaskGroup::spawn_bg(Self[X], async () -> Unit, no_wait? : Bool, allow_fail
5455
fn[X] TaskGroup::spawn_loop(Self[X], async () -> IterResult, no_wait? : Bool, allow_failure? : Bool, retry? : RetryMethod, max_retry? : Int, fatal_error? : (Error) -> Bool) -> Unit raise
5556

5657
// Type aliases
57-
pub typealias @moonbitlang/async/aqueue.Queue as Queue
58+
pub using @aqueue {type Queue}
5859

59-
pub typealias @moonbitlang/async/semaphore.Semaphore as Semaphore
60+
pub using @semaphore {type Semaphore}
6061

6162
// Traits
6263

src/socket/pkg.generated.mbti

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,19 @@ import(
99

1010
// Errors
1111
pub suberror InvalidAddr
12-
fn InvalidAddr::output(Self, &Logger) -> Unit // from trait `Show`
13-
fn InvalidAddr::to_string(Self) -> String // from trait `Show`
1412
impl Show for InvalidAddr
1513

1614
pub suberror ResolveHostnameError String
17-
fn ResolveHostnameError::output(Self, &Logger) -> Unit // from trait `Show`
18-
fn ResolveHostnameError::to_string(Self) -> String // from trait `Show`
1915
impl Show for ResolveHostnameError
2016

2117
// Types and methods
2218
type Addr
23-
fn Addr::compare(Self, Self) -> Int // from trait `Compare`
24-
fn Addr::equal(Self, Self) -> Bool // from trait `Eq`
25-
fn Addr::hash(Self) -> Int // from trait `Hash`
26-
fn Addr::hash_combine(Self, Hasher) -> Unit // from trait `Hash`
2719
fn Addr::ip(Self) -> UInt
2820
fn Addr::is_ipv6(Self) -> Bool
2921
fn Addr::new(UInt, Int) -> Self
30-
#deprecated
31-
fn Addr::op_equal(Self, Self) -> Bool // from trait `Eq`
32-
fn Addr::output(Self, &Logger) -> Unit // from trait `Show`
3322
fn Addr::parse(String) -> Self raise InvalidAddr
3423
fn Addr::port(Self) -> Int
3524
async fn Addr::resolve(String, port~ : Int, protocol? : IpProtocolPreference) -> Self
36-
fn Addr::to_string(Self) -> String // from trait `Show`
3725
impl Compare for Addr
3826
impl Eq for Addr
3927
impl Hash for Addr
@@ -46,26 +34,18 @@ pub(all) enum IpProtocolPreference {
4634
FavorV6
4735
NoPreference
4836
}
49-
fn IpProtocolPreference::output(Self, &Logger) -> Unit // from trait `Show`
50-
fn IpProtocolPreference::to_string(Self) -> String // from trait `Show`
5137
impl Show for IpProtocolPreference
5238

39+
#alias(TCP, deprecated)
5340
type Tcp
5441
fn Tcp::close(Self) -> Unit
5542
async fn Tcp::connect(Addr) -> Self
5643
async fn Tcp::connect_to_host(String, port~ : Int, protocol? : IpProtocolPreference) -> Self
5744
fn Tcp::enable_keepalive(Self, idle_before_keep_alive? : Int, keep_alive_count? : Int, keep_alive_interval? : Int) -> Unit raise
58-
async fn Tcp::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
59-
async fn Tcp::read_all(Self) -> &@io.Data // from trait `@io.Reader`
60-
async fn Tcp::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
61-
async fn Tcp::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
62-
async fn Tcp::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
63-
async fn Tcp::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
64-
#deprecated
65-
async fn Tcp::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
6645
impl @io.Reader for Tcp
6746
impl @io.Writer for Tcp
6847

48+
#alias(TCPServer, deprecated)
6949
type TcpServer
7050
async fn TcpServer::accept(Self) -> (Tcp, Addr)
7151
fn TcpServer::close(Self) -> Unit
@@ -85,9 +65,6 @@ async fn UdpServer::recvfrom(Self, FixedArray[Byte], offset? : Int, max_len? : I
8565
async fn UdpServer::sendto(Self, Bytes, Addr, offset? : Int, len? : Int) -> Unit
8666

8767
// Type aliases
88-
pub typealias Tcp as TCP
89-
90-
pub typealias TcpServer as TCPServer
9168

9269
// Traits
9370

src/stdio/pkg.generated.mbti

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,10 @@ let stdout : Output
1717
// Types and methods
1818
type Input
1919
fn Input::fd(Self) -> Int
20-
async fn Input::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
21-
async fn Input::read_all(Self) -> &@io.Data // from trait `@io.Reader`
22-
async fn Input::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
2320
impl @io.Reader for Input
2421

2522
type Output
2623
fn Output::fd(Self) -> Int
27-
async fn Output::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
28-
async fn Output::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
29-
async fn Output::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
30-
#deprecated
31-
async fn Output::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
3224
impl @io.Writer for Output
3325

3426
// Type aliases

src/tls/pkg.generated.mbti

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,20 @@ import(
99

1010
// Errors
1111
pub suberror ConnectionClosed
12-
fn ConnectionClosed::output(Self, &Logger) -> Unit // from trait `Show`
13-
fn ConnectionClosed::to_string(Self) -> String // from trait `Show`
1412
impl Show for ConnectionClosed
1513

1614
pub suberror OpenSSLError String
17-
fn OpenSSLError::output(Self, &Logger) -> Unit // from trait `Show`
18-
fn OpenSSLError::to_string(Self) -> String // from trait `Show`
1915
impl Show for OpenSSLError
2016

2117
// Types and methods
18+
#alias(TLS, deprecated)
2219
type Tls
2320
async fn[Inner : @io.Reader + @io.Writer] Tls::client(Inner, verify? : Bool, host? : String, sni? : Bool) -> Self
2421
async fn[R : @io.Reader, W : @io.Writer] Tls::client_from_pair(R, W, verify? : Bool, host? : String, sni? : Bool) -> Self
2522
fn Tls::close(Self) -> Unit
26-
async fn Tls::read(Self, FixedArray[Byte], offset? : Int, max_len? : Int) -> Int // from trait `@io.Reader`
27-
async fn Tls::read_all(Self) -> &@io.Data // from trait `@io.Reader`
28-
async fn Tls::read_exactly(Self, Int) -> Bytes // from trait `@io.Reader`
2923
async fn[Inner : @io.Reader + @io.Writer] Tls::server(Inner, private_key_file~ : String, private_key_type~ : X509FileType, certificate_file~ : String, certificate_type~ : X509FileType) -> Self
3024
async fn[R : @io.Reader, W : @io.Writer] Tls::server_from_pair(R, W, private_key_file~ : String, private_key_type~ : X509FileType, certificate_file~ : String, certificate_type~ : X509FileType) -> Self
3125
async fn Tls::shutdown(Self) -> Unit
32-
async fn Tls::write(Self, &@io.Data) -> Unit // from trait `@io.Writer`
33-
async fn Tls::write_once(Self, Bytes, offset~ : Int, len~ : Int) -> Int // from trait `@io.Writer`
34-
async fn Tls::write_reader(Self, &@io.Reader) -> Unit // from trait `@io.Writer`
35-
#deprecated
36-
async fn Tls::write_string(Self, StringView, encoding~ : @io.Encoding) -> Unit // from trait `@io.Writer`
3726
impl @io.Reader for Tls
3827
impl @io.Writer for Tls
3928

@@ -43,7 +32,6 @@ pub(all) enum X509FileType {
4332
}
4433

4534
// Type aliases
46-
pub typealias Tls as TLS
4735

4836
// Traits
4937

0 commit comments

Comments
 (0)