Skip to content

Commit

Permalink
make new user experience smoother
Browse files Browse the repository at this point in the history
This adds some noise, which I'm not a huge fan of. However if I hadn't
had my cup of coffee and not tried reading the type error, I might have
pushed back "actually use polysemy in the real world" to "later".

Ideally I think I would have read the docs, but I suspect that "paste
examples verbatim into ghc source file without reading docs" is a
popular method to try libraries out.

Fixes polysemy-research#349
  • Loading branch information
codygman committed Jun 21, 2020
1 parent 0082a8e commit 0ffe520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Polysemy/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ import Polysemy.Internal.Union
-- example
-- & runError
-- & fmap (either id id)
-- -- Without `-fplugin=Polysemy.Plugin` you need `evalState @String`
-- & evalState ""
-- & runM
-- & (print =<<)
Expand All @@ -123,6 +124,7 @@ import Polysemy.Internal.Union
--
-- >>> :{
-- example
-- -- Without `-fplugin=Polysemy.Plugin` you need `evalState @String`
-- & evalState ""
-- & runError
-- & fmap (either id id)
Expand Down

0 comments on commit 0ffe520

Please sign in to comment.