{"commits":[{"author":{"email":"18098ec54bfe1f2fc309e5e5697cf1bbd4c2bc57@earth.li","name":"Ian Lynagh"},"sha":"6874f4f7ab71960e44ccc5c270bc30dfc4e95169","message":"Convert come FFI bindings to use the capi calling convention","url":"https://api.github.com/repos/ghc/packages-base/commits/6874f4f7ab71960e44ccc5c270bc30dfc4e95169"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"c0ee7bd3c9558f9e19218066b9e002380b878b0c","message":"Add a way to get hold of the current call stack\n\n  GHC.Stack.currentCallStack :: IO [String]\n\nAt the moment this uses the profiler's cost-centre stack; maybe in the\nfuture it might use some other mechanism.  Right now it only gives\nuseful results when profiling and using -fprof-auto or similar, but it\ncould be quite handy. e.g.\n\nf :: Int -> IO Int\nf x = do currentCallStack >>= print; return (x+1)\n\nmapM :: Monad m => (a -> m b) -> [a] -> m [b]\nmapM f xs = go xs\n  where go []     = return []\n        go (x:xs) = do\n          x' <- f x\n          xs' <- mapM f xs\n          return (x':xs')\n\nmain = mapM f [42,42]\n\n$ ./stack\n[\"MAIN.MAIN\",\"Main.main\",\"Main.mapM\",\"Main.mapM.go\",\"Main.f\"]\n[\"MAIN.MAIN\",\"Main.main\",\"Main.mapM\",\"Main.mapM.go\",\"Main.f\"]","url":"https://api.github.com/repos/ghc/packages-base/commits/c0ee7bd3c9558f9e19218066b9e002380b878b0c"},{"author":{"email":"18098ec54bfe1f2fc309e5e5697cf1bbd4c2bc57@earth.li","name":"Ian Lynagh"},"sha":"630f44d11e4afc0155787d0115b8a5e0d33a5cf4","message":"Use capi some more (part of #5480)","url":"https://api.github.com/repos/ghc/packages-base/commits/630f44d11e4afc0155787d0115b8a5e0d33a5cf4"},{"author":{"email":"18098ec54bfe1f2fc309e5e5697cf1bbd4c2bc57@earth.li","name":"Ian Lynagh"},"sha":"1bde0e5f0038c30063e02641fda0996d898a06ef","message":"Use capi to define the fcntl FFI imports","url":"https://api.github.com/repos/ghc/packages-base/commits/1bde0e5f0038c30063e02641fda0996d898a06ef"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"71157d6870def4f5dd6bf9e2a0837888f4a55f66","message":"Use utf8 when decoding cost centre strings","url":"https://api.github.com/repos/ghc/packages-base/commits/71157d6870def4f5dd6bf9e2a0837888f4a55f66"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"8812b6716e6a7c7ef2b8b1d074ce1015206ba3c1","message":"Expand the stack-tracing API\n\n - add whoCreated :: a -> IO [String]\n   Get the stack trace attached to an object\n\n - rename getCCCS to getCurrentCCS\n\n - add getCCSOf (used to implement whoCreated)\n\n - add renderStack :: [String] -> String\n   A handy function for prettifying a stack","url":"https://api.github.com/repos/ghc/packages-base/commits/8812b6716e6a7c7ef2b8b1d074ce1015206ba3c1"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"41bf1ae71a791e800260f901dcc5b298d9671b2f","message":"Add traceStack :: String -> a -> a\n\n-- | like 'trace', but additionally prints a call stack if one is\n-- available.\n--\n-- In the current GHC implementation, the call stack is only\n-- availble if the program was compiled with @-prof@; otherwise\n-- 'traceStack' behaves exactly like 'trace'.  Entries in the call\n-- stack correspond to @SCC@ annotations, so it is a good idea to use\n-- @-fprof-auto@ to add SCC annotations automatically.","url":"https://api.github.com/repos/ghc/packages-base/commits/41bf1ae71a791e800260f901dcc5b298d9671b2f"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"0ced3ede62fc51d7a4575f9e4efeeb904efcd76a","message":"Change the layout of stack traces\n\nStack trace:\n  Main.CAF\n  Main.main\n  Main.main.xs\n  Main.map\n  Main.map.go\n  Main.f","url":"https://api.github.com/repos/ghc/packages-base/commits/0ced3ede62fc51d7a4575f9e4efeeb904efcd76a"},{"author":{"email":"0f335816a479d40a484b0f003cd959ed488eb2a0@gmail.com","name":"Simon Marlow"},"sha":"87f88de3289ca755941483586e0044210e9b65c7","message":"Add source locations to call stack entries.","url":"https://api.github.com/repos/ghc/packages-base/commits/87f88de3289ca755941483586e0044210e9b65c7"},{"author":{"email":"18098ec54bfe1f2fc309e5e5697cf1bbd4c2bc57@earth.li","name":"Ian Lynagh"},"sha":"a3451b85fb57066aa0d7f4b0506f116dd73008f6","message":"Roll back the sigset capi changes\n\nThey broken the build on OSX. See #2979.","url":"https://api.github.com/repos/ghc/packages-base/commits/a3451b85fb57066aa0d7f4b0506f116dd73008f6"}],"ref":"refs/heads/ghc-7.4","head":"a3451b85fb57066aa0d7f4b0506f116dd73008f6","size":10,"push_id":52514145}