At first I haven't manage yet to do what I want. In this thread, there is a solution: http://mail.haskell.org/pipermail/haskell-cafe/2015-April/119021.html for the dynamic case. See below for the complete rootfs I use (similar thus to https://github.com/snoyberg/haskell-scratch).
We want a minimal Docker image with the following program.
> cat Example.hs
main = putStrLn "Hello, world."