Use sound types

As described in [this issue](https://github.com/evancz/Elm/issues/447)