Skip to content

Implement PrimGen - #16

Merged
curiousleo merged 2 commits into
interface-to-performancefrom
primgen
Mar 13, 2020
Merged

curiousleo merged 2 commits into
interface-to-performancefrom
primgen

Conversation

@lehins

@lehins lehins commented Mar 1, 2020

Copy link
Copy Markdown
Collaborator

This PR includes a wrapper around pure generator that can be used in IO in a thread safe manner. Because it is restricted to PrimMonad instead of IO it is also useful in ST and with various transformers. It basically implements half of the #15

@Shimuuar this something along the lines that you suggested.

@curiousleo curiousleo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is really elegant.

Comment thread System/Random.hs Resolved
This was referenced Mar 2, 2020
Comment thread System/Random.hs Resolved
Comment thread System/Random.hs Resolved
@lehins lehins mentioned this pull request Mar 6, 2020
@curiousleo
curiousleo merged commit 4024650 into interface-to-performance Mar 13, 2020
@curiousleo
curiousleo deleted the primgen branch March 17, 2020 09:56
curiousleo added a commit that referenced this pull request May 19, 2020
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