Skip to content

Add UrT, the unrestricted monad transformer#304

Merged
sjoerdvisscher merged 5 commits intomasterfrom
sv/unrestricted-transformer
May 17, 2021
Merged

Add UrT, the unrestricted monad transformer#304
sjoerdvisscher merged 5 commits intomasterfrom
sv/unrestricted-transformer

Conversation

@sjoerdvisscher
Copy link
Copy Markdown
Contributor

I found this useful, so it could be nice to add this to linear-base.

@@ -0,0 +1,43 @@
{-# LANGUAGE LinearTypes #-}

module Data.Unrestricted.Internal.UrT
Copy link
Copy Markdown
Member

@facundominguez facundominguez Feb 16, 2021

Choose a reason for hiding this comment

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

The module haddock could be a good place to share some examples where the UrT monad could be useful.

It makes me wonder if we could have a style of interfaces where absolutely all linear resources go in the linear state, and they are only consumed/manipulated with monadic operations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sjoerdvisscher and others added 3 commits February 16, 2021 16:00
@sjoerdvisscher sjoerdvisscher requested a review from utdemir May 16, 2021 18:03
Copy link
Copy Markdown
Contributor

@utdemir utdemir left a comment

Choose a reason for hiding this comment

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

Thanks!

@sjoerdvisscher sjoerdvisscher merged commit 2c4f995 into master May 17, 2021
@sjoerdvisscher sjoerdvisscher deleted the sv/unrestricted-transformer branch May 17, 2021 08:57
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.

3 participants