fix https://github.com/purescript/purescrit/issues/531 and https://github.com/purescript/purescript/issues/530