[TTG: Handling Source Locations] Foundation and Pat

Authored by shayan-najd on Nov 21 2018, 7:23 PM.

Description

[TTG: Handling Source Locations] Foundation and Pat

This patch removes the ping-pong style from HsPat (only, for now),
using the plan laid out at
https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow/HandlingSourceLocations (solution
A).

  • the class HasSrcSpan, and its functions (e.g., cL and dL), are introduced
  • some instances of HasSrcSpan are introduced
  • some constructors L are replaced with cL
  • some patterns L are replaced with dL->L view pattern
  • some type annotation are necessarily updated (e.g., Pat p --> Pat (GhcPass p))

Phab diff: D5036
Trac Issues Trac #15495

Updates haddock submodule

Details

Committed
alanzNov 24 2018, 4:30 AM
Parents
rGHCad2d7612dbdf: Fix unused import warning
Branches
Unknown
Tags
Unknown