diff --git a/repository/GET_LISTED.md b/repository/GET_LISTED.md index 93e70c8..de67628 100644 --- a/repository/GET_LISTED.md +++ b/repository/GET_LISTED.md @@ -15,6 +15,9 @@ To create an app stub, your PR should also include the file: `repository/app-stu For example, here is `app-stubs/basic-webserver.roc`: ```roc +import pf.Task exposing [Task] +import pf.Http exposing [Request, Response] + main : Request -> Task Response [] main = \req -> Task.ok { status: 200, headers: [], body: Str.toUtf8 "Hello, world!\n" } diff --git a/repository/app-stubs/basic-cli.roc b/repository/app-stubs/basic-cli.roc index 6612aea..40d1603 100644 --- a/repository/app-stubs/basic-cli.roc +++ b/repository/app-stubs/basic-cli.roc @@ -1,3 +1,6 @@ +import cli.Stdout +import cli.Task exposing [Task] + main : Task {} _ main = Stdout.line! "Hello, world!" \ No newline at end of file diff --git a/repository/app-stubs/basic-webserver.roc b/repository/app-stubs/basic-webserver.roc index f0ab968..1b004d3 100644 --- a/repository/app-stubs/basic-webserver.roc +++ b/repository/app-stubs/basic-webserver.roc @@ -1,3 +1,6 @@ +import pf.Task exposing [Task] +import pf.Http exposing [Request, Response] + main : Request -> Task Response [] main = \req -> Task.ok { status: 200, headers: [], body: Str.toUtf8 "Hello, world!\n" } \ No newline at end of file