-
Notifications
You must be signed in to change notification settings - Fork 52
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
Writer space leak fix #90
Conversation
|
||
|
||
newtype WriterC w m a = WriterC { runWriterC :: m (w, a) } | ||
newtype WriterC w m a = WriterC { runWriterC :: w -> m (w, a) } |
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.
Can we make some notes in the documentation (doesn’t have to be Haddock) about why we chose this formulation?
fused-effects.cabal
Outdated
, fused-effects | ||
hs-source-dirs: benchmark | ||
default-language: Haskell2010 | ||
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m" -j |
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.
Should this contain -O2
?
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.
Unfortunately that causes cabal check
to complain. Plus, I think it’s valuable to be able to run the benchmarks at different optimization levels and see how the performance varies.
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.
Weird re. cabal check
, but good enough for me.
@patrickt: Documented with a link to the mailing list post, and also noted the current limitations. |
Looks terrific. |
This PR:
Functor
,Applicative
, andMonad
instances forVoidC
andWriterC
.WriterC
/VoidC
against theirEff
-wrapped counterparts. (cf Eff is slower than the underlying carrier for some operations #89)