-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal-docspec: Fails to detect examples with non-standard unicode characters present #131
Comments
@amesgen Just ran into this very same issue. Are there any workarounds, or fixes planned? |
The workaround in #132 (just rebased) still works fine for me, but it is rather ad-hoc. |
Thanks @amesgen This doesn't work for me, unfortunately. My code looks like: data SStroke
-- | The sheffer stroke operator
(︱) :: SStroke -> SStroke -> SStroke
(︱) = uninterpret "︱"
infixl 7 ︱
-- | Negation in terms of ǀ
ﬧ :: SStroke -> SStroke
ﬧ x = x ︱x It appears the definition for ﬧ is throwing things off. Do you think this is a separate issue? |
Yeah, that |
@amesgen I filed an issue against Do you have a patch you can submit against it? Or commenting on the ticket regarding the details might help Iavor get to the issue quicker. Thanks! |
Looks like Iavor is making progress. But there's another issue: Shouldn't doctest complain when lexing fails? Right now it appears it simply ignores those files (or portions of it?) that it cannot lex. Should we be filing another issue where these failures cause erroring out? Otherwise, a user might think things are getting tested, which are just not run because of some lexing/parsing issue kicks in. |
E.g. this example is not detected:
This is due to
haskell-lexer
not supporting this:This could be fixed in
haskell-lexer
(but maybe this actually is accurate behavior for Haskell 98?), but asstubbornPass0
already works around anotherhaskell-lexer
deficiency, it might be acceptable to do so again in this case? See #132 for that.Minimal reproducible example
https://github.com/amesgen/stuff/tree/cabal-docspec-unicode
The text was updated successfully, but these errors were encountered: