Permalink
Browse files

Merge pull request #13 from hvr/pr/mrp-refactor

canonicalise Monad instance for future-proofing
  • Loading branch information...
2 parents cf09f4e + 754da16 commit 2b441a3b2dd8423e18eaf702009a3fa2f97319fe @ekmett committed Nov 23, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Text/PrettyPrint/Free/Internal.hs
@@ -800,7 +800,7 @@ instance Bind (Doc a) where
(>>-) = (>>=)
instance Monad (Doc a) where
- return = Effect
+ return = pure
d >>= k = docLeafyRec (\e -> k e) Annotate d
fail _ = empty

0 comments on commit 2b441a3

Please sign in to comment.