Skip to content
  • Rufflewind's avatar
    Add caret diagnostics · 158530a5
    Rufflewind authored and Ben Gamari's avatar Ben Gamari committed
    This is controlled by -f[no-]diagnostics-show-caret.
    
    Example of what it looks like:
    ```
        |
     42 |     x = 1 + ()
        |         ^^^^^^
    ```
    This is appended to each diagnostic message.
    
    Test Plan:
    testsuite/tests/warnings/should_fail/CaretDiagnostics1
    testsuite/tests/warnings/should_fail/CaretDiagnostics2
    
    Reviewers: simonpj, austin, bgamari
    
    Reviewed By: simonpj, bgamari
    
    Subscribers: joehillen, mpickering, Phyx, simonpj, alanz, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2718
    
    GHC Trac Issues: #8809
    158530a5