diff options
Diffstat (limited to 'compiler/GHC/Types/ForeignStubs.hs')
-rw-r--r-- | compiler/GHC/Types/ForeignStubs.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/GHC/Types/ForeignStubs.hs b/compiler/GHC/Types/ForeignStubs.hs index f366ddbf4a..949b750d38 100644 --- a/compiler/GHC/Types/ForeignStubs.hs +++ b/compiler/GHC/Types/ForeignStubs.hs @@ -1,5 +1,6 @@ -- | Foreign export stubs {-# LANGUAGE DerivingVia #-} +{-# LANGUAGE TypeApplications #-} module GHC.Types.ForeignStubs ( ForeignStubs (..) , CHeader(..) @@ -68,10 +69,10 @@ newtype CHeader = CHeader { getCHeader :: SDoc } instance Monoid CHeader where mempty = CHeader empty - mconcat = coerce vcat + mconcat = coerce (vcat @SDoc) instance Semigroup CHeader where - (<>) = coerce ($$) + (<>) = coerce (($$) @SDoc) -- | Foreign export stubs data ForeignStubs |