diff --git a/CHANGELOG.md b/CHANGELOG.md index cce686d..ccdce65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Notable changes to this project are documented in this file. The format is based Breaking changes: +- Remove redundant/impure `StatsObj` methods (#72 by @ptrfrncsmrph) + New features: Bugfixes: diff --git a/src/Node/FS/Stats.purs b/src/Node/FS/Stats.purs index 13bea3d..3748f9c 100644 --- a/src/Node/FS/Stats.purs +++ b/src/Node/FS/Stats.purs @@ -15,7 +15,7 @@ module Node.FS.Stats import Prelude import Data.DateTime (DateTime) -import Data.Function.Uncurried (Fn2, Fn0, runFn2) +import Data.Function.Uncurried (Fn2, runFn2) import Data.JSDate (JSDate, toDateTime) import Data.Maybe (fromJust) import Partial.Unsafe (unsafePartial) @@ -32,12 +32,6 @@ type StatsObj = , atime :: JSDate , mtime :: JSDate , ctime :: JSDate - , isFile :: Fn0 Boolean - , isDirectory :: Fn0 Boolean - , isBlockDevice :: Fn0 Boolean - , isCharacterDevice :: Fn0 Boolean - , isFIFO :: Fn0 Boolean - , isSocket :: Fn0 Boolean } -- | Stats wrapper to provide a usable interface to the underlying properties and methods.