Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 1 addition & 7 deletions src/Node/FS/Stats.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down