How to get the typed AST of a function's code?

The LambdaInfo object returned by code_typed contains a code field, but it seems to be a compressed byte array of type Array{UInt8, 1}. Is there any way to get the uncompressed code (hopefully typed) as an array of statements?

It’s not very well documented yet, but there is: https://github.com/SimonDanisch/Sugar.jl
You might want to look into the runtest or https://github.com/SimonDanisch/Transpiler.jl, to see more of Sugar’s features!

Fantastic! Looks like this is exactly what I need. Thanks a lot!