[GHC] #10523: Add Monoid instance for IO

#10523: Add Monoid instance for IO -------------------------------------+------------------------------------- Reporter: Gabriel439 | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.10.1 Component: Compiler | Operating System: Unknown/Multiple Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- This is to add the following `Monoid` instance for `IO`: {{{#!hs instance Monoid a => Monoid (IO a) where mempty = pure mempty mappend = liftA2 mappend }}} I originally proposed this instance on the libraries mailing list a while ago: https://mail.haskell.org/pipermail/libraries/2014-November/024310.html ... and the proposal was well-received so I would like to contribute the instance. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10523 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10523: Add Monoid instance for IO -------------------------------------+------------------------------------- Reporter: Gabriel439 | Owner: Gabriel439 Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by Gabriel439): * owner: => Gabriel439 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10523#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10523: Add Monoid instance for IO -------------------------------------+------------------------------------- Reporter: Gabriel439 | Owner: Gabriel439 Type: feature request | Status: new Priority: normal | Milestone: 7.12.1 Component: libraries/base | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by hvr): * cc: hvr, ekmett (added) * component: Compiler => libraries/base * milestone: => 7.12.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10523#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10523: Add Monoid instance for IO -------------------------------------+------------------------------------- Reporter: Gabriel439 | Owner: Gabriel439 Type: feature request | Status: patch Priority: normal | Milestone: 7.12.1 Component: libraries/base | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D988 -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D988 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10523#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10523: Add Monoid instance for IO
-------------------------------------+-------------------------------------
Reporter: Gabriel439 | Owner: Gabriel439
Type: feature request | Status: patch
Priority: normal | Milestone: 7.12.1
Component: libraries/base | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions: Phab:D988
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#10523: Add Monoid instance for IO -------------------------------------+------------------------------------- Reporter: Gabriel439 | Owner: Gabriel439 Type: feature request | Status: closed Priority: normal | Milestone: 7.12.1 Component: libraries/base | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D988 -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10523#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC