Skip to content
Snippets Groups Projects
Commit 4f8a875d authored by Alan Zimmerman's avatar Alan Zimmerman
Browse files

Match GHC changes for T21805

This brings in a newtype for FieldLabelString
parent 7bd04379
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ import GHC.Types.Var
import GHC.Types.Var.Set
import GHC.Types.SrcLoc
import Language.Haskell.Syntax.Basic (FieldLabelString(..))
import Haddock.Types
import Haddock.Interface.Specialize
import Haddock.GhcUtils ( orderedFVs, defaultRuntimeRepVars, mkEmptySigType )
......@@ -387,7 +389,7 @@ synifyDataCon use_gadt_syntax dc =
field_tys = zipWith con_decl_field (dataConFieldLabels dc) linear_tys
con_decl_field fl synTy = noLocA $
ConDeclField noAnn [noLocA $ FieldOcc (flSelector fl) (noLocA $ mkVarUnqual $ flLabel fl)] synTy
ConDeclField noAnn [noLocA $ FieldOcc (flSelector fl) (noLocA $ mkVarUnqual $ field_label $ flLabel fl)] synTy
Nothing
mk_h98_arg_tys :: Either ErrMsg (HsConDeclH98Details GhcRn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment