Skip to content

Commit fabe7da

Browse files
committed
Remove redundant StatsObj methods
Resolves #71
1 parent a9da8b9 commit fabe7da

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Notable changes to this project are documented in this file. The format is based
66

77
Breaking changes:
88

9+
- Remove redundant/impure `StatsObj` methods (#72 by @ptrfrncsmrph)
10+
911
New features:
1012

1113
Bugfixes:

src/Node/FS/Stats.purs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Node.FS.Stats
1515

1616
import Prelude
1717
import Data.DateTime (DateTime)
18-
import Data.Function.Uncurried (Fn2, Fn0, runFn2)
18+
import Data.Function.Uncurried (Fn2, runFn2)
1919
import Data.JSDate (JSDate, toDateTime)
2020
import Data.Maybe (fromJust)
2121
import Partial.Unsafe (unsafePartial)
@@ -32,12 +32,6 @@ type StatsObj =
3232
, atime :: JSDate
3333
, mtime :: JSDate
3434
, ctime :: JSDate
35-
, isFile :: Fn0 Boolean
36-
, isDirectory :: Fn0 Boolean
37-
, isBlockDevice :: Fn0 Boolean
38-
, isCharacterDevice :: Fn0 Boolean
39-
, isFIFO :: Fn0 Boolean
40-
, isSocket :: Fn0 Boolean
4135
}
4236

4337
-- | Stats wrapper to provide a usable interface to the underlying properties and methods.

0 commit comments

Comments
 (0)