Skip to content

Instantly share code, notes, and snippets.

@ckoparkar
Last active April 23, 2019 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckoparkar/6b5ec4ee97873d1aa400fe8143849dc1 to your computer and use it in GitHub Desktop.
Save ckoparkar/6b5ec4ee97873d1aa400fe8143849dc1 to your computer and use it in GitHub Desktop.
-- ghc-8.6.5 -O0 -ddump-ds -ddump-simpl -ddump-to-file -fexpose-all-unfoldings -dsuppress-uniques \
-- -fforce-recomp -dsuppress-idinfo A.hs
module A where
import qualified Data.Map as M
data Foo = A Int
| B Foo Int
deriving Eq
some_fun :: M.Map Int a -> Maybe a
some_fun = M.lookup 0
{-# INLINE some_fun #-}
other_fun :: Num a => a -> a
other_fun x = x + x
{-# INLINE other_fun #-}
foo :: Integer
foo = other_fun 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment