Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions platform/main.roc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform ""
requires {
## The application entry point receives command-line arguments only; the
## launcher-supplied program name is available from Env.program_name!.
main! : List([Utf8(Str), UnixBytes(List(U8)), WindowsU16s(List(U16))]) => Try({}, [Exit(I32), Interrupted, ..])
main! : List(OsStr) => Try({}, [Exit(I32), Interrupted, ..])
}
exposes [Cmd, Duration, Env, File, Http, IOErr, Locale, Monotonic, OsStr, Path, Random, Signal, Sleep, Sqlite, Stderr, Stdin, Stdout, System, Tcp, Tty, UnixSocket, Url, Utc]
packages {
Expand Down Expand Up @@ -173,7 +173,7 @@ import Utc

## The native host removes the invocation name (argv[0]) before calling this
## function. Applications can read that value separately with Env.program_name!.
main_for_host! : List(OsStr.OsStr) => I32
main_for_host! : List(OsStr) => I32
main_for_host! = |args|
match main!(args) {
Ok({}) => 0
Expand Down
Loading