Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example suggestion: import alias with as #179

Open
Anton-4 opened this issue May 6, 2024 · 0 comments
Open

Example suggestion: import alias with as #179

Anton-4 opened this issue May 6, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented May 6, 2024

Example:

app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br" }

import pf.Stdout
# use `as` to define an import alias 
import pf.Task as T

main =
    _ <- Stdout.line "hey" |> T.await
    Stdout.line! "Hello, World!"

We should use a simple example like this but without backpassing

@Anton-4 Anton-4 added the good first issue Good for newcomers label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant