Skip to content

Commit

Permalink
Add note explaining why we use a different <>
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbe committed Jan 4, 2012
1 parent f642dc4 commit f615a6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Text/PrettyPrint/HughesPJ.hs
Expand Up @@ -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
Expand Down

0 comments on commit f615a6a

Please sign in to comment.