Skip to content

Commit

Permalink
Merge pull request #319 from well-typed/missing-inline
Browse files Browse the repository at this point in the history
Add missing INLINE pragmas
  • Loading branch information
arybczak authored May 5, 2020
2 parents 931c3f6 + 568d604 commit a47f004
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions optics-core/src/Optics/AffineFold.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ atraverseOf_
atraverseOf_ o point f s = case preview o s of
Just a -> () <$ f a
Nothing -> point ()
{-# INLINE atraverseOf_ #-}

-- | Create an 'AffineFold' from a partial function.
--
Expand Down
1 change: 1 addition & 0 deletions optics-core/src/Optics/IxAffineFold.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ iatraverseOf_
iatraverseOf_ o point f s = case ipreview o s of
Just (i, a) -> () <$ f i a
Nothing -> point ()
{-# INLINE iatraverseOf_ #-}

-- | Create an 'IxAffineFold' from a partial function.
iafolding :: (s -> Maybe (i, a)) -> IxAffineFold i s a
Expand Down
1 change: 1 addition & 0 deletions optics-core/src/Optics/IxAffineTraversal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ unsafeFilteredBy p = iatraversalVL $ \point f s -> case preview p s of
-- 6
ignored :: IxAffineTraversal i s s a b
ignored = iatraversalVL $ \point _ -> point
{-# INLINE ignored #-}

-- $setup
-- >>> import Optics.Core
Expand Down

0 comments on commit a47f004

Please sign in to comment.