File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
- ignore : {name: "Use if"}
4
4
- ignore : {name: "Use fmap"}
5
5
- ignore : {name: "Use uncurry"}
6
+ - ignore : {name: "Use unless"}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pstr :: QuasiQuoter
15
15
pstr =
16
16
QuasiQuoter
17
17
{ quoteExp = \ s -> do
18
- ps <- either (fail . show ) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure ) $ s
18
+ ps <- either (fail . show ) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure ) s
19
19
when (not $ isValid ps) $ fail (" filepath now valid: " ++ show ps)
20
20
lift ps
21
21
, quotePat = \ _ ->
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pstr :: QuasiQuoter
16
16
pstr =
17
17
QuasiQuoter
18
18
{ quoteExp = \ s -> do
19
- ps <- either (fail . show ) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure ) $ s
19
+ ps <- either (fail . show ) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure ) s
20
20
when (not $ isValid ps) $ fail (" filepath now valid: " ++ show ps)
21
21
lift ps
22
22
, quotePat = \ _ ->
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ pstr =
251
251
QuasiQuoter
252
252
#ifdef WINDOWS
253
253
{ quoteExp = \ s -> do
254
- ps <- either (fail . show ) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure ) $ s
254
+ ps <- either (fail . show ) pure $ encodeWith (mkUTF16le ErrorOnCodingFailure ) s
255
255
lift ps
256
256
, quotePat = \ _ ->
257
257
fail " illegal QuasiQuote (allowed as expression only, used as a pattern)"
@@ -262,7 +262,7 @@ pstr =
262
262
}
263
263
#else
264
264
{ quoteExp = \ s -> do
265
- ps <- either (fail . show ) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure ) $ s
265
+ ps <- either (fail . show ) pure $ encodeWith (mkUTF8 ErrorOnCodingFailure ) s
266
266
lift ps
267
267
, quotePat = \ _ ->
268
268
fail " illegal QuasiQuote (allowed as expression only, used as a pattern)"
You can’t perform that action at this time.
0 commit comments