Skip to content

Commit 99e6217

Browse files
committed
Switch BuildResult builtTimes from Integer to Int
1 parent ddc914b commit 99e6217

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hnix-store-core/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
exported. Use respective `mkStorePath..` functions. [#230](https://github.com/haskell-nix/hnix-store/pull/230)
66
* `StorePathSet` type alias is no more, use `HashSet StorePath` [#230](https://github.com/haskell-nix/hnix-store/pull/230)
77
* `makeStorePath` and `parsePath` now returns `Either InvalidPathError StorePath` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
8-
8+
* `BuildResult`s `timesBuild` field changes type from `Integer` to `Int` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
99

1010
* Additions:
1111
* `InvalidPathError` replacing previous stringy error [#231](https://github.com/haskell-nix/hnix-store/pull/231)

hnix-store-core/src/System/Nix/Build.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ data BuildResult = BuildResult
4646
, -- | possible build error message
4747
errorMessage :: !(Maybe Text)
4848
, -- | How many times this build was performed
49-
timesBuilt :: !Integer
49+
timesBuilt :: !Int
5050
, -- | If timesBuilt > 1, whether some builds did not produce the same result
5151
isNonDeterministic :: !Bool
5252
, -- Start time of this build

hnix-store-remote/src/System/Nix/Store/Remote/Serialize.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ instance Serialize BuildResult where
2929
<$> get
3030
-- TODO(srk): fishy
3131
<*> (Just <$> get)
32-
<*> (fromIntegral <$> getInt)
32+
<*> getInt
3333
<*> getBool
3434
<*> getTime
3535
<*> getTime

0 commit comments

Comments
 (0)