Use Error type for exceptions

Resolves https://github.com/purescript/purescript/issues/474