File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ compile genv tlm _ def =
117117
118118 case (p , theDef def) of
119119 (NoPragma , _ ) -> return []
120- (ExistingClassPragma , _ ) -> return []
120+ (ExistingPragma , _ ) -> return []
121+ (ExistingClassPragma , Record {} ) -> return []
121122 (UnboxPragma s , Record {} ) -> [] <$ checkUnboxPragma def
122123 (TransparentPragma , Function {}) -> [] <$ checkTransparentPragma def
123124 (InlinePragma , Function {}) -> [] <$ checkInlinePragma def
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ hasCompilePragma q = processPragma q <&> \case
195195 InlinePragma {} -> True
196196 DefaultPragma {} -> True
197197 ClassPragma {} -> True
198+ ExistingPragma {} -> True
198199 ExistingClassPragma {} -> True
199200 UnboxPragma {} -> True
200201 TransparentPragma {} -> True
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ data ParsedPragma
5151 | InlinePragma
5252 | DefaultPragma [Hs. Deriving () ]
5353 | ClassPragma [String ]
54+ | ExistingPragma
5455 | ExistingClassPragma
5556 | UnboxPragma Strictness
5657 | TransparentPragma
@@ -89,6 +90,7 @@ processPragma qn = liftTCM (getUniqueCompilerPragma pragmaName qn) >>= \case
8990 Just (CompilerPragma r s)
9091 | " class" `isPrefixOf` s -> return $ ClassPragma (words $ drop 5 s)
9192 | s == " inline" -> return InlinePragma
93+ | s == " existing" -> return ExistingPragma
9294 | s == " existing-class" -> return ExistingClassPragma
9395 | s == " unboxed" -> return $ UnboxPragma Lazy
9496 | s == " unboxed-strict" -> return $ UnboxPragma Strict
You can’t perform that action at this time.
0 commit comments