diff --git a/CHANGELOG.md b/CHANGELOG.md index 97f17b4..7959ab4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based ## [Unreleased] Breaking changes: +- Remove `exists` since the underlying `Async.exists` from `purescript-node-fs` has been removed (#36 by @sigma-andex) - Update project and deps to PureScript v0.15.0 (#33 by @JordanMartinez, @thomashoneyman, @sigma-andex) - Update `mkdir'` to take options arg (#34 by @JordanMartinez) diff --git a/src/Node/FS/Aff.purs b/src/Node/FS/Aff.purs index 7d5e4f5..ada916d 100644 --- a/src/Node/FS/Aff.purs +++ b/src/Node/FS/Aff.purs @@ -21,7 +21,6 @@ module Node.FS.Aff , writeTextFile , appendFile , appendTextFile - , exists , fdOpen , fdRead , fdNext @@ -32,10 +31,10 @@ module Node.FS.Aff import Prelude -import Effect.Aff (Aff, makeAff, nonCanceler) -import Effect (Effect) import Data.DateTime (DateTime) import Data.Maybe (Maybe) +import Effect (Effect) +import Effect.Aff (Aff, makeAff, nonCanceler) import Node.Buffer (Buffer) import Node.Encoding (Encoding) import Node.FS as F @@ -216,11 +215,6 @@ appendFile = toAff2 A.appendFile appendTextFile :: Encoding -> FilePath -> String -> Aff Unit appendTextFile = toAff3 A.appendTextFile --- | --- | Check to see if a file exists. --- | -exists :: String -> Aff Boolean -exists file = makeAff \k -> A.exists file (pure >>> k) $> nonCanceler -- | Open a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_open_path_flags_mode_callback) -- | for details.