Skip to content

Commit

Permalink
Merge pull request #11 from imclerran/fix-stubs
Browse files Browse the repository at this point in the history
Fix broken app stubs (add imports)
  • Loading branch information
imclerran authored Jun 5, 2024
2 parents c8f0d4a + b1f758b commit afd3bc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repository/GET_LISTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<b>Hello, world!</b>\n" }
Expand Down
3 changes: 3 additions & 0 deletions repository/app-stubs/basic-cli.roc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import cli.Stdout
import cli.Task exposing [Task]

main : Task {} _
main =
Stdout.line! "Hello, world!"
3 changes: 3 additions & 0 deletions repository/app-stubs/basic-webserver.roc
Original file line number Diff line number Diff line change
@@ -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 "<b>Hello, world!</b>\n" }

0 comments on commit afd3bc6

Please sign in to comment.