Skip to content

Commit

Permalink
Be more precise with inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Oct 19, 2016
1 parent 3ff738c commit 446f293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Graphics/Identicon.hs
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,4 @@ renderIdenticon proxy impl width height bs =
then Nothing
else Just $ generateImage
(snd $ render proxy impl width height bs) width height
{-# NOINLINE renderIdenticon #-}
1 change: 1 addition & 0 deletions Graphics/Identicon/Primitive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,4 @@ rsym l = Layer $ \w h x y ->

oneof :: Integral n => [a] -> n -> a
oneof xs n = xs !! (fromIntegral n `rem` length xs)
{-# INLINE oneof #-}

0 comments on commit 446f293

Please sign in to comment.