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

Use PrimMonad to make life easier #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

treeowl
Copy link
Contributor

@treeowl treeowl commented Aug 30, 2016

  • As usual, the IO and ST code were actually the same.
    PrimMonad abstracts from that, and also adds support for
    monad transformers.
  • Removed utterly bogus Show instances for monadic graphs.
    The right thing to do is probably to offer a graph freezing
    primitive; then the frozen graph can be shown as usual. For
    large graphs, streaming conversion would be useful.

* As usual, the `IO` and `ST` code were actually the same.
`PrimMonad` abstracts from that, and also adds support for
monad transformers.

* Removed utterly bogus `Show` instances for monadic graphs.
  The right thing to do is probably to offer a graph freezing
  primitive; then the frozen graph can be shown as usual. For
  large graphs, streaming conversion would be useful.
@treeowl
Copy link
Contributor Author

treeowl commented Aug 30, 2016

This is a bit of a work in progress, and definitely not something to merge in a minor version. But I think the general idea is right.

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

Successfully merging this pull request may close these issues.

2 participants