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

DO NOT MERGE Upgrade examples to Purity Inference #223

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

lukewilliamboswell
Copy link
Collaborator

No description provided.

@lukewilliamboswell lukewilliamboswell marked this pull request as ready for review December 20, 2024 06:25
@Anton-4 Anton-4 self-assigned this Dec 28, 2024
@Anton-4 Anton-4 changed the title Upgrade examples to Purity Inference DO NOT MERGE Upgrade examples to Purity Inference Dec 28, 2024
@Anton-4
Copy link
Collaborator

Anton-4 commented Dec 28, 2024

fyi I added "DO NOT MERGE" so this is held until the basic-cli pre-release becomes a full release

Copy link
Collaborator

@Anton-4 Anton-4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can take some of these as well, whoever gets to it first

main =
Stdout.line! (Inspect.toStr (parseNameAndYear "Alice was born in 1990"))
Stdout.line! (Inspect.toStr (parseNameAndYearTry "Alice was born in 1990"))
main! = \_ ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the basic-cli examples we've been using main! = \_args -> everywhere, I prefer it like that, it's more transparent. What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree... I just never came back to these and made the changes here yet.


# Generate a list of numbers using the seed and generator provided
# This is NOT cryptograhpically secure!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we should keep this 😄


sum = Task.loop! 0 addNumberFromStdin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rename this example 😄

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to rename this one as well. The README for this example also needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants