Skip to content

Commit 84ad099

Browse files
authored
Merge pull request #197 from AndreasPK/master
Mark many in Alternative instance as INLINEABLE
2 parents e74d8d0 + f95581b commit 84ad099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Data/Binary/Get/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ instance Alternative Get where
282282
case v of
283283
Nothing -> pure []
284284
Just x -> (:) x <$> many p
285-
{-# INLINE many #-}
285+
{-# INLINEABLE many #-} -- many will never inline because it's recursive, so mark it INLINEABLE instead.
286286

287287
-- | Run a decoder and keep track of all the input it consumes.
288288
-- Once it's finished, return the final decoder (always 'Done' or 'Fail'),

0 commit comments

Comments
 (0)