File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 22
22
lift ps
23
23
, quotePat = \ s -> do
24
24
osp' <- either (fail . show ) pure . encodeWith (mkUTF8 ErrorOnCodingFailure ) $ s
25
+ when (not $ isValid osp') $ fail (" filepath not valid: " ++ show osp')
25
26
[p |((==) osp' -> True)|]
26
27
, quoteType = \ _ ->
27
28
fail " illegal QuasiQuote (allowed as expression or pattern only, used as a type)"
Original file line number Diff line number Diff line change 23
23
lift ps
24
24
, quotePat = \ s -> do
25
25
osp' <- either (fail . show ) pure . encodeWith (mkUTF16le ErrorOnCodingFailure ) $ s
26
+ when (not $ isValid osp') $ fail (" filepath not valid: " ++ show osp')
26
27
[p |((==) osp' -> True)|]
27
28
, quoteType = \ _ ->
28
29
fail " illegal QuasiQuote (allowed as expression or pattern only, used as a type)"
You can’t perform that action at this time.
0 commit comments