While working on purescript-batteries, I ran into a collision between Control.Monad.Eff.Exception.error and Control.Monad.Eff.Console.error. I think people are more likely to mean Console.error than Exception.error when they just say error.
I'm not sure what else I would call it, though. Maybe toError? Or perhaps there could be a throw :: String -> Eff (err :: EXCEPTION | e) a function, which would sidestep error and throwException.
Obviously this isn't a problem with this package per se. I could (and may) address this in purescript-batteries. But I wanted to open an issue here for discussion.
While working on purescript-batteries, I ran into a collision between
Control.Monad.Eff.Exception.errorandControl.Monad.Eff.Console.error. I think people are more likely to meanConsole.errorthanException.errorwhen they just sayerror.I'm not sure what else I would call it, though. Maybe
toError? Or perhaps there could be athrow :: String -> Eff (err :: EXCEPTION | e) afunction, which would sidesteperrorandthrowException.Obviously this isn't a problem with this package per se. I could (and may) address this in purescript-batteries. But I wanted to open an issue here for discussion.