Skip to content

Remove redundant StatsObj methods #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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