Skip to content

Update/0.12#42

Merged
LiamGoodacre merged 1 commit into
purescript:compiler/0.12from
LiamGoodacre:update/0.12
Apr 28, 2018
Merged

Update/0.12#42
LiamGoodacre merged 1 commit into
purescript:compiler/0.12from
LiamGoodacre:update/0.12

Conversation

@LiamGoodacre
Copy link
Copy Markdown
Member

Does this business with runSTRecord and pureSTRecord look right?

@LiamGoodacre LiamGoodacre changed the base branch from master to compiler/0.12 April 25, 2018 22:26
Copy link
Copy Markdown
Member

@garyb garyb left a comment

Choose a reason for hiding this comment

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

We could update everything in the ST module to drop the STRecord prefix too, like we've done in a few other places, since it can be handled nicely with qualification anyway.

Comment thread src/Data/Record/ST.purs Outdated
pureSTRecord :: forall r. (forall h eff. Eff (st :: ST h | eff) (STRecord h r)) -> Record r
pureSTRecord st = runPure (runSTRecord st)
runSTRecord :: forall r. (forall h. ST h (STRecord h r)) -> Record r
runSTRecord st = run (st >>= freezeSTRecord)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe this doesn't even need to exist anymore?

@LiamGoodacre
Copy link
Copy Markdown
Member Author

@garyb I agreed with and have made the changes you mentioned 😺

Copy link
Copy Markdown
Member

@garyb garyb left a comment

Choose a reason for hiding this comment

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

Sorry, forgot this one was pending :)

@LiamGoodacre LiamGoodacre merged commit 4c35571 into purescript:compiler/0.12 Apr 28, 2018
@LiamGoodacre LiamGoodacre deleted the update/0.12 branch April 28, 2018 16:25
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