Support basic form of HsBangTy

ghc92
Lennart Spitzner 2023-05-09 17:51:37 +00:00
parent 7e56701bc2
commit 6008cb26ac
2 changed files with 6 additions and 1 deletions

View File

@ -982,3 +982,6 @@ instance BMGuwigoc POtfuggj where
| USilcnhkYaraposqu (WeyOoovf (Nubwlhtjd EculdW.QaeopznkAc r))
deriving stock (Lirylfj1, Jexr)
deriving anyclass Qart2.Vrzxuvcf
#test bang-type
data LabeledBool = LabeledBool !Int !Bool

View File

@ -370,7 +370,9 @@ layoutType ltype@(L _ typ) = docHandleComms ltype $ case typ of
]
)
]
HsBangTy{} -> -- TODO
HsBangTy epAnn (HsSrcBang NoSourceText NoSrcUnpack SrcStrict) innerTy -> do
docHandleComms epAnn $ docSeq [docLitS "!", layoutType innerTy]
HsBangTy {} ->
briDocByExactInlineOnly "HsBangTy{}" ltype
-- HsBangTy bang typ1 -> do
-- let bangStr = case bang of