See e.g.
https://github.com/ghc/ghc/blob/baf9ebe55a51827c0511b3a670e60b9bb3617ab5/libraries/base/Data/Maybe.hs#L84-L101
for an example already in `base`.

Relevant ticket: https://ghc.haskell.org/trac/ghc/ticket/11551

- Oleg

On 05.01.2017 03:51, Kazu Yamamoto (山本和彦) wrote:
> Hi Sunjay,
>
>> If I use the doctest style, do I use ">>>" for the prompt? That's more a
>> Python thing. Maybe ">" would be more appropriate for Haskell?
> You should use ">>>".
>
> If you don't know doctest for Haskell, please read:
>
>       https://github.com/sol/doctest#readme
>
> The following document would also help:
>
>       
> https://github.com/kazu-yamamoto/unit-test-example/blob/master/markdown/en/tutorial.md
>
> --Kazu
> _______________________________________________
> ghc-devs mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to