-
Notifications
You must be signed in to change notification settings - Fork 10
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
Wrong render of the regular expression string in the Basics tutorial #50
Comments
The source gives a correct Haskell string: regex-tdfa/lib/Text/Regex/TDFA.hs Line 35 in 693a7f8
The Haddock documentation contains an example with a escape sequence in a string, and there is no extra escaping: https://haskell-haddock.readthedocs.io/en/latest/markup.html#examples -- >>> putStrLn "foo\nbar"
-- foo
-- bar I think this should be considered a haddock bug rather than a bug here, do you agree @s-and-witch ? |
Ok, I played a bit with the problem. The crux seems to be the explicit code block annotations regex-tdfa/lib/Text/Regex/TDFA.hs Lines 34 to 53 in 693a7f8
It seems that removing them would fix the formatting. After all, >>> is already indicating code!
Blame for introducing |
@s-and-witch : Please check the new rendering at https://hackage.haskell.org/package/regex-tdfa-1.3.2.1/candidate/docs/Text-Regex-TDFA.html |
Cool, thanks for such a quick fix! |
Ok, then I'll release the fix! |
Here https://hackage.haskell.org/package/regex-tdfa-1.3.2/docs/Text-Regex-TDFA.html in Basics section first regular expression rendered by haddock as
But that's not a valid Haskell string, it should be
Perhaps you need to add more slashes or something
The text was updated successfully, but these errors were encountered: