Skip to content

Commit 02e6738

Browse files
committed
Fix loop in Capability.HasWriter.writer
`Capability.HasWriter.writer` was calling itself in a loop instead of calling `Capability.HasWriter.writer_`.
1 parent e66ccfc commit 02e6738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Capability/Writer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class (Monoid w, Monad m, HasSink tag w m)
117117
-- Appends @w@ to the output of the writer capability @tag@
118118
-- and returns the value @a@.
119119
writer :: forall tag w m a. HasWriter tag w m => (a, w) -> m a
120-
writer = writer @tag
120+
writer = writer_ (proxy# @_ @tag)
121121
{-# INLINE writer #-}
122122

123123
-- | @tell \@tag w@

0 commit comments

Comments
 (0)