Solution (source code)

= Solution

A flat density in $\log\psi$ induces $p(\psi)\propto1/\psi$. Since $\psi=(1-\phi)/\phi$, the absolute <Jacobian determinant> is $|d\psi/d\phi|=\phi^{-2}$. Therefore
$$
\boxed{p(\phi)\propto\frac{1}{\phi(1-\phi)},\qquad0<\phi<1.}
$$
This is the <Haldane prior>, an <improper prior> with formal beta parameters $(0,0)$.