[GHC] #12812: Debugging functions should throw warnings
#12812: Debugging functions should throw warnings -------------------------------------+------------------------------------- Reporter: siddhanathan | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: | Version: 8.0.1 libraries/base | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The function Debug.Trace.trace is useful for debugging, however, we don't want this function to be present in production code. An excerpt from Debug.Trace explains why: {{{ The 'trace' function should /only/ be used for debugging, or for monitoring execution. The function is not referentially transparent: its type indicates that it is a pure function but it has the side effect of outputting the trace message. }}} It would be useful if the compiler threw warnings when such functions are used. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12812> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12812: Debugging functions should throw warnings -------------------------------------+------------------------------------- Reporter: siddhanathan | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: libraries/base | Version: 8.0.1 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 Ben Gamari <ben@…>): In [changeset:"2cfbee896be349d16238c044475c7c15cfb9b3f2/ghc" 2cfbee89/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2cfbee896be349d16238c044475c7c15cfb9b3f2" rts: Fix build when linked with gold As reported in #12812, the runtime system fails to build when linked with gold due to a missing dependency on libpthread. Additionally, rts/package.conf.in uses the WORD_SIZE_IN_BITS macro defined by MachDeps.h, which it does not #include. Fix this. Test Plan: Validate with gold linker Reviewers: hsyl20, austin, erikd, simonmar Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2695 GHC Trac Issues: #12816 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12812#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC