Adding dedicated Show instances for SrcSpan/SrcLoc
authorAlan Zimmerman <alan.zimm@gmail.com>
Tue, 18 Nov 2014 01:19:10 +0000 (19:19 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 18 Nov 2014 01:19:10 +0000 (19:19 -0600)
commitce2cc64f0b4c447bf83fd0d0b260f00126a0c4d6
tree7db19f76b5561c4cc62666996eb40c5238997c31
parentdf22507fef86407de35a89294ca901056dfde37a
Adding dedicated Show instances for SrcSpan/SrcLoc

Summary:
The derived Show instances for SrcSpan and SrcLoc are very verbose.

This patch replaces them with hand-made ones which use positional
syntax for the record constructors, rather than exhaustively listing
each one.

Test Plan: sh ./validate

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D445
compiler/basicTypes/SrcLoc.lhs
testsuite/tests/ghc-api/show-srcspan/.gitignore [new file with mode: 0644]
testsuite/tests/ghc-api/show-srcspan/Makefile [new file with mode: 0644]
testsuite/tests/ghc-api/show-srcspan/all.T [new file with mode: 0644]
testsuite/tests/ghc-api/show-srcspan/showsrcspan.hs [new file with mode: 0644]
testsuite/tests/ghc-api/show-srcspan/showsrcspan.stdout [new file with mode: 0644]