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

100% haddock coverage #153

Open
ryantrinkle opened this issue Jan 3, 2018 · 3 comments
Open

100% haddock coverage #153

ryantrinkle opened this issue Jan 3, 2018 · 3 comments

Comments

@ryantrinkle
Copy link
Member

No description provided.

@ryantrinkle ryantrinkle added this to the v0.5 milestone Jan 3, 2018
@sboosali
Copy link

sboosali commented Jan 9, 2018

Can you add laws and simple examples for all functions listed in the cheatsheet?

https://github.com/reflex-frp/reflex/blob/develop/Quickref.md

Like their relationships, when one is primitive and others are derived, especially their relationships with never and constant (and other base cases, like the empty list, the empty map, 0, etc).

@ryantrinkle
Copy link
Member Author

@sboosali That sounds great, too :) I think it would be nice if we could use doctest or something like that to ensure they are (and stay) valid.

@ag-eitilt
Copy link

Doctest would be nice, but it seems to require something be written to the terminal, and tellEvent only gets us so far. From the tests, I know it's possible to complete the bridge to IO [a], but I wasn't able to tease apart the Test.Run code enough to simplify the type signature; someone with better knowledge of the code internals may have better luck. If we can get a tellEventIO :: Event t a -> IO [a] or similar, though, the docs could become amazing.

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

No branches or pull requests

5 participants