Make Outputable instance for HsDocString useful
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Tue, 25 Feb 2014 06:35:10 +0000 (06:35 +0000)
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Tue, 25 Feb 2014 06:35:49 +0000 (06:35 +0000)
commitede5b5180c2a5db3f51b01dbef402d21ace9601c
tree80954039a27b55f8dee50bc6c7f916ec7c0b7250
parent4f69b1e23cc9538241e895be4dbee0a0a0fd8396
Make Outputable instance for HsDocString useful

Seeing "<document comment>" when trying to debug things in Haddock is
utterly useless and because this instance exists, we can't even make our
own. No instance at all would be better than what it was!

Admittedly, this doesn't produce the nicest output. Perhaps wrapping the
comments in {- -} would be in order but I think it's fine until someone
complains.
19 files changed:
compiler/hsSyn/HsDoc.hs
testsuite/tests/haddock/haddock_examples/haddock.Test.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA014.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA015.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA016.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA018.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA019.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA020.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA021.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA023.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA024.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA025.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA026.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA027.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA028.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA029.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA030.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA031.stderr
testsuite/tests/haddock/should_compile_flag_haddock/haddockA032.stderr