bugsnagException accepts no arguments and splices Text -> Text -> BugsnagException
throwIO $(bugsnagException) "myFunc" "Error message"
-- Not sure yet if it needs to be this, which would be sad
throwIO $ $(bugsnagException) "myFunc" "Error message"
-- We could provide this, if so
$(throwBugsnag) "myFunc" "Error message"
Benefits:
You aren't blocked by stage-restriction from doing something like
throwIO $(bugsnagException) "myFunc" $ "User not found " <> userId
Which is not possible with the current splice type.
Currently:
bugsnagException
accepts arguments and splicesBugsnagException
.Proposed:
bugsnagException
accepts no arguments and splicesText -> Text -> BugsnagException
Benefits:
You aren't blocked by stage-restriction from doing something like
Which is not possible with the current splice type.