Skip to content

Commit

Permalink
Added inline pragmas for a simple performance gain
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizek committed Jul 23, 2016
1 parent cbc8833 commit e2c9368
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compose-ltr.cabal
Expand Up @@ -2,7 +2,7 @@
-- documentation, see http://haskell.org/cabal/users-guide/

name: compose-ltr
version: 0.1.3
version: 0.2.0
synopsis: More intuitive, left-to-right function composition.
description: More intuitive, left-to-right function composition.
-- description:
Expand Down
5 changes: 5 additions & 0 deletions src/Data/Function/Compose/LeftToRight.hs
Expand Up @@ -4,12 +4,17 @@ import Prelude hiding ((<$))

(.>) = flip (.)
infixl 9 .>
{-# INLINE (.>) #-}

($>) = flip ($)
infixl 0 $>
{-# INLINE ($>) #-}


(<$) = ($)
infixr 1 <$
{-# INLINE (<$) #-}

(<.) = (.)
infixr 9 <.
{-# INLINE (<.) #-}

0 comments on commit e2c9368

Please sign in to comment.