
#15559: fromJust has no HasCallStack -------------------------------------+------------------------------------- Reporter: nomeata | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: 8.6.1 Component: Core Libraries | Version: 8.4.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by gridaphobe): There were also concerns about API stability, particularly since the original implementation exposed the implicit parameter. Now that we have the `HasCallStack` alias and a decent set of API functions around it, we could swap out the implementation, if necessary, with less potential for client breakage. I'd support starting to add `HasCallStack` constraints to common partial functions like `fromJust`, `head`, etc. Though, is this something that should be discussed with the Core Libraries Committee? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15559#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler