Browse files

Add note explaining why we use a different <>

  • Loading branch information...
1 parent f642dc4 commit f615a6aeb4abcdbfbfab67b0a82cef9a9a65ec49 @tibbe tibbe committed Jan 4, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Text/PrettyPrint/HughesPJ.hs
View
4 Text/PrettyPrint/HughesPJ.hs
@@ -543,6 +543,10 @@ nilAboveNest g k q | not g && k > 0 -- No newline if no overlap
-- ---------------------------------------------------------------------------
-- Horizontal composition @<>@
+-- We intentionally avoid Data.Monoid.(<>) here due to interactions of
+-- Data.Monoid.(<>) and (<+>). See
+-- http://www.haskell.org/pipermail/libraries/2011-November/017066.html
+
-- | Beside.
-- '<>' is associative, with identity 'empty'.
(<>) :: Doc -> Doc -> Doc

0 comments on commit f615a6a

Please sign in to comment.