Skip to content

Commit c0e8d30

Browse files
committed
Fix hlint warnings
1 parent 30052a6 commit c0e8d30

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.hlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
- ignore: {name: "Use if"}
44
- ignore: {name: "Use fmap"}
55
- ignore: {name: "Use uncurry"}
6+
- ignore: {name: "Use unless"}

System/OsPath/Posix.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pstr :: QuasiQuoter
1515
pstr =
1616
QuasiQuoter
1717
{ quoteExp = \s -> do
18-
ps <- either (fail . show) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure) $ s
18+
ps <- either (fail . show) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure) s
1919
when (not $ isValid ps) $ fail ("filepath now valid: " ++ show ps)
2020
lift ps
2121
, quotePat = \_ ->

System/OsPath/Windows.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pstr :: QuasiQuoter
1616
pstr =
1717
QuasiQuoter
1818
{ quoteExp = \s -> do
19-
ps <- either (fail . show) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure) $ s
19+
ps <- either (fail . show) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure) s
2020
when (not $ isValid ps) $ fail ("filepath now valid: " ++ show ps)
2121
lift ps
2222
, quotePat = \_ ->

System/OsString/Common.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pstr =
251251
QuasiQuoter
252252
#ifdef WINDOWS
253253
{ quoteExp = \s -> do
254-
ps <- either (fail . show) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure) $ s
254+
ps <- either (fail . show) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure) s
255255
lift ps
256256
, quotePat = \_ ->
257257
fail "illegal QuasiQuote (allowed as expression only, used as a pattern)"
@@ -262,7 +262,7 @@ pstr =
262262
}
263263
#else
264264
{ quoteExp = \s -> do
265-
ps <- either (fail . show) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure) $ s
265+
ps <- either (fail . show) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure) s
266266
lift ps
267267
, quotePat = \_ ->
268268
fail "illegal QuasiQuote (allowed as expression only, used as a pattern)"

0 commit comments

Comments
 (0)