
#9748: Disambiguate IO actions in GHCi with :set +t -------------------------------------+------------------------------------- Reporter: | Owner: zudov Iceland_jack | Status: new Type: feature | Milestone: request | Version: 7.8.2 Priority: low | Keywords: Component: GHCi | Architecture: Unknown/Multiple Resolution: | Difficulty: Easy (less than 1 Operating System: | hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by hvr): Replying to [comment:3 simonpj]:
I quite like Herert's suggestion. Or {{{ Prelude> return 'a' Running IO action... 'a' it :: Char }}}
This has the risk of interleaving with other side-effected output the `IO` action may produce
or {{{ Prelude> return 'a' it :: Char -- After running the IO action }}}
This has the issue of introducing an English sentence which may require translation to other language (should GHCi ever be i18n'ed), as well as using up precious horizontal space for a boilerplate expression. I'd rather avoid adding natural language in places where a more terse annotation would suffice -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9748#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler