Hidden type error

Fix for #309. Not sure if `PureScript.hs` is the right place for this exactly, perhaps should have moved it to `TypeChecker.hs`.