Skip to content
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

support for multiline text doctest properties #1609

Closed
thielema opened this issue Jul 26, 2023 · 1 comment
Closed

support for multiline text doctest properties #1609

thielema opened this issue Jul 26, 2023 · 1 comment

Comments

@thielema
Copy link
Contributor

Doctest supports multiline syntax :{ .. :} for doctest unit tests, e.g.

>>> :{ runMyTest
   longArgumentA
   longArgumentB
   longArgumentC
:}
expected output

but it does not support that syntax for doctest properties, that is

prop> :{ runMyTest
   longArgumentA
   longArgumentB
   longArgumentC
:}

We would like to support multiline syntax for properties in doctest-extract, though, which is currently blocked by missing support in Haddock. We have factored out the doctest parser to https://hackage.haskell.org/package/doctest-lib, thus haddock and doctest-extract and doctest could use the same parser.

See also: sol/doctest#131

@Kleidukos
Copy link
Member

Hi, thank you for this ticket, but Haddock now lives full-time in the GHC repository!
Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.

Let me know if you feel it is still needed, and I'll migrate it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants