The example implementation of Unix cat(1) is... intimidating!
https://github.com/CakeML/cakeml/blob/master/examples/iocatP...
https://github.com/CakeML/cakeml/blob/master/examples/iocatP...
Edit: The page describes two frontends. The first is a "proof-producing synthesis" of a CakeML AST from "ML-like functions in HOL". This is what I believe is the more typical use case of CakeML. The second frontend is a more traditional frontend which parse concrete CakeML syntax.