Skip to content

Conversation

sigma-andex
Copy link
Contributor

No description provided.

@sigma-andex
Copy link
Contributor Author

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

@sigma-andex
Copy link
Contributor Author

🏓 @JordanMartinez

@JordanMartinez
Copy link
Contributor

🏓 @thomashoneyman

`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

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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants