Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update documentation reflecting removal of async exists #433

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

Conversation

Copy link
Contributor

@sigma-andex sigma-andex commented Apr 13, 2022

No description provided.

Copy link
Contributor Author

I think the added newline add the end of the file renders the changes wrong here in Github..

Copy link
Contributor Author

Copy link
Contributor

`exists` has been removed since the underlying `Async.exists` from `purescript-node-fs` has been removed.

**To fix**:
- use `exists` from the `Sync` module, if needed in an `Aff` context use `liftEffect (Sync.exists path)`.
Copy link
Contributor

@JordanMartinez JordanMartinez Apr 14, 2022

Choose a reason for hiding this comment

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

node-fs-aff doesn't have a Sync module. So, perhaps this could be clarified to say:

- import the `node-fs` package's `Node.Fs.Sync (exists)` function and wrap in `liftEffect` (e.g. `liftEffect $ Sync.exists path`)

Copy link
Contributor Author

@sigma-andex sigma-andex Apr 14, 2022

Choose a reason for hiding this comment

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

Done

@JordanMartinez JordanMartinez merged commit 9eab6bc into purescript:master Apr 14, 2022
@JordanMartinez JordanMartinez deleted the update-for-remove-fs-async-exists branch April 14, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@thomashoneyman thomashoneyman thomashoneyman approved these changes

+1 more reviewer

@JordanMartinez JordanMartinez JordanMartinez approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /