We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 507d588 commit 62e2902Copy full SHA for 62e2902
src/comp/CSyntax.hs
@@ -965,7 +965,8 @@ instance PPrint CDefn where
965
(IdK i) -> ppConId d i
966
(IdKind i k) -> ppConId d i <+> t "::" <+> pp d k
967
(IdPKind i pk) -> ppConId d i <+> t "::" <+> pp d pk
968
- pPrint d p (Cforeign i ty oname opnames _) =
+ pPrint d p (Cforeign i ty oname opnames ni) =
969
+ (if ni then text "{-# noinline" <+> ppVarId d i <+> text "#-}" else text "") <+>
970
text "foreign" <+> ppVarId d i <+> t "::" <+> pp d ty <>
971
(case oname of Nothing -> text ""; Just s -> text (" = " ++ show s)) <>
972
(case opnames of Nothing -> text ""; Just (is, os) -> t"," <> pparen True (sep (map (text . show) is ++ po os)))
0 commit comments