Skip to content

Commit d404cd9

Browse files
CI: quote the hlint version, ignore "Use <=" in Stream.Time
Unquoted 3.10 is read by YAML as 3.1, so hlint 3.1 was installed when the cache was empty. hlint suggests "d <= 0" for "not (d > 0)", which differs when d is NaN.
1 parent fc0b370 commit d404cd9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.circleci/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
name: hlint and trailing spaces
178178
environment:
179179
DISABLE_SDIST_BUILD: "yes"
180-
HLINT_VERSION: 3.10
180+
HLINT_VERSION: "3.10"
181181
HLINT_OPTIONS: lint
182182
HLINT_TARGETS: core/src src
183183
command: |

‎.hlint.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
- ignore: {name: "Redundant <*", within: Stream.Expand}
3535
- ignore: {name: "Redundant bracket", within: Stream.Split}
3636
- ignore: {name: "Use isDigit", within: Streamly.Internal.Unicode.Parser}
37+
# "not (d > 0)" is true for NaN, "d <= 0" is not.
38+
- ignore: {name: "Use <=", within: Streamly.Internal.Data.Stream.Time}
3739

3840
# Specify additional command line arguments
3941
#

0 commit comments

Comments
 (0)