Contributing Examples to the Documentation

Oleg Grenrus oleg.grenrus at iki.fi
Thu Jan 5 11:22:56 UTC 2017


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
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170105/9a28b017/attachment-0001.sig>


More information about the ghc-devs mailing list