workaround safe haskell