on master help sign in
Add a note about having no pragma vs having an INLINABLE pragma
commit1d89961700d294cc5bbc20cc05547c70e53dd5cc authorAdithya Kumar <adithya@composewell.com> dateWed 22 Nov 2023, 17:48 (3 years ago) parent626e355
1 file changed+6
core/src/Streamly/Internal/Data/Serialize/TH/Bottom.hs+6
core/src/Streamly/Internal/Data/Serialize/TH/Bottom.hs+6
@@ -74,6 +74,12 @@ import Streamly.Internal.Data.Unbox.TH (DataCon(..))
7474-- Config
7575--------------------------------------------------------------------------------
7676
77+-- NOTE: 'Nothing' is not eqvivalant to 'Just Inlinable'. Ie. Having no inline
78+-- specific pragma and having an Inlinable pragma are different. Having an
79+-- Inlinable pragma makes GHC put the code in the interface file whereas having
80+-- no inline specific pragma let's GHC decide whether to put the code in
81+-- interface file or not.
82+
7783-- | Configuration to control how the 'Serialize' instance is generated. Use
7884-- 'defaultConfig' and config setter functions to generate desired Config. For
7985-- example: