From fabe7da725ddbf038e0338f19e4b6d0b51651729 Mon Sep 17 00:00:00 2001 From: Peter Murphy <26548438+ptrfrncsmrph@users.noreply.github.com> Date: Fri, 4 Nov 2022 16:30:39 -0400 Subject: [PATCH] Remove redundant StatsObj methods Resolves #71 --- CHANGELOG.md | 2 ++ src/Node/FS/Stats.purs | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) 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.