summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorShayne Fletcher <shayne@shaynefletcher.org>2021-04-24 16:59:26 -0400
committerShayne Fletcher <shayne@shaynefletcher.org>2021-05-23 08:02:58 +1000
commit0b1eed74e8ad5194152ed656ac3e4a547726b70a (patch)
tree3e654267d7077050a2358910ebe0ef29cfdddb0d /utils
parentef4d2999a200f22c864d7c1a2bdfbfd726a0f849 (diff)
downloadhaskell-0b1eed74e8ad5194152ed656ac3e4a547726b70a.tar.gz
Change representation of field selector occurences
- Change the names of the fields in in `data FieldOcc` - Renames `HsRecFld` to `HsRecSel` - Replace `AmbiguousFieldOcc p` in `HsRecSel` with `FieldOcc p` - Contains a haddock submodule update The primary motivation of this change is to remove `AmbiguousFieldOcc`. This is one of a suite of changes improving how record syntax (most notably record update syntax) is represented in the AST.
Diffstat (limited to 'utils')
-rw-r--r--utils/check-exact/ExactPrint.hs4
m---------utils/haddock0
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/check-exact/ExactPrint.hs b/utils/check-exact/ExactPrint.hs
index f63e9e61e1..8bcc508288 100644
--- a/utils/check-exact/ExactPrint.hs
+++ b/utils/check-exact/ExactPrint.hs
@@ -1780,7 +1780,7 @@ instance ExactPrint (GRHS GhcPs (LocatedA (HsCmd GhcPs))) where
instance ExactPrint (HsExpr GhcPs) where
getAnnotationEntry (HsVar{}) = NoEntryVal
getAnnotationEntry (HsUnboundVar an _) = fromAnn an
- getAnnotationEntry (HsRecFld{}) = NoEntryVal
+ getAnnotationEntry (HsRecSel{}) = NoEntryVal
getAnnotationEntry (HsOverLabel an _) = fromAnn an
getAnnotationEntry (HsIPVar an _) = fromAnn an
getAnnotationEntry (HsOverLit an _) = fromAnn an
@@ -1827,7 +1827,7 @@ instance ExactPrint (HsExpr GhcPs) where
printStringAtAA ob "`"
printStringAtAA l "_"
printStringAtAA cb "`"
- -- exact x@(HsRecFld{}) = withPpr x
+ -- exact x@(HsRecSel{}) = withPpr x
-- exact x@(HsOverLabel ann _ _) = withPpr x
exact (HsIPVar _ (HsIPName n))
= printStringAdvance ("?" ++ unpackFS n)
diff --git a/utils/haddock b/utils/haddock
-Subproject 3fe1ccd2393837c4e8bc788368c18b40f7dac91
+Subproject 3b6a8774bdb543dad59b2618458b07feab8a55e