Skip to content
Snippets Groups Projects
Commit 6a27eb97 authored by Stefan Holdermans's avatar Stefan Holdermans
Browse files

Mark `GHC.Utils.Misc.partitionWithM` as inlineable

This patch adds an `INLINEABLE` pragma for `partitionWithM` to ensure
that the right-hand side of the definition of this function remains
available for specialisation at call sites.
parent 8a2968b7
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,7 @@ partitionWithM f (x:xs) = do
case y of
Left b -> return (b:bs, cs)
Right c -> return (bs, c:cs)
{-# INLINEABLE partitionWithM #-}
chkAppend :: [a] -> [a] -> [a]
-- Checks for the second argument being empty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment