You can use the ghc multi-line string syntax for this:
foo ab | a > b = a | a == b = b | otherwise = error "Blah blah blah blah in this line and \ \some more blah in this line also."
For errors, this does not really matter, but in other contexts it can be more efficient than string concatenation.
source share