-
Notifications
You must be signed in to change notification settings - Fork 73
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
make new user experience smoother #350
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,8 @@ import Polysemy.Internal.Union | |
-- catching = do | ||
-- modify (++"-catch") | ||
-- get | ||
-- catch @String throwing (\ _ -> catching) | ||
-- -- Without `-fplugin=Polysemy.Plugin` you need `catch @String` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haddock doesn't check these AFAIK |
||
-- catch throwing (\ _ -> catching) | ||
-- :} | ||
-- | ||
-- when handling 'Polysemy.Error.Error' first, state is preserved after error | ||
|
@@ -113,6 +114,7 @@ import Polysemy.Internal.Union | |
-- example | ||
-- & runError | ||
-- & fmap (either id id) | ||
-- -- Without `-fplugin=Polysemy.Plugin` you need `evalState @String` | ||
-- & evalState "" | ||
-- & runM | ||
-- & (print =<<) | ||
|
@@ -123,6 +125,7 @@ import Polysemy.Internal.Union | |
-- | ||
-- >>> :{ | ||
-- example | ||
-- -- Without `-fplugin=Polysemy.Plugin` you need `evalState @String` | ||
-- & evalState "" | ||
-- & runError | ||
-- & fmap (either id id) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't understand this sentence, sorry! Can you explain it to me? Mostly, what are the "extras" referring to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extras == extra language pragmas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but what are they extra in reference to?
Do you mean "add any that are listed in the necessary extensions, but not enabled in the example source block"?