[GHC] #11210: Missing instances for Identity and Const

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: | Version: 7.11 libraries/base | Keywords: g | 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 following instances are all permissible yet are not defined. They can all be derived with {{{GeneralizedNewtypeDeriving}}}. It would be useful for me if they were defined in {{{base}}}. These should probably also go into {{{base-orphans}}} and {{{transformers}}} (for versions of {{{base}}} before {{{Identity}}} was moved there). {{{#!hs instance Bounded a => Bounded (Const a b) instance Enum a => Bounded (Const a b) instance Ix a => Bounded (Const a b) instance Semigroup a => Semigroup (Const a b) instance Bounded a => Bounded (Identity a) instance Enum a => Bounded (Identity a) instance Ix a => Bounded (Identity a) instance Semigroup a => Semigroup (Identity a) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g 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 duairc): These are also possible: {{{ instance Storable a => Storable (Const a b) instance Storable a => Storable (Identity a) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g 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 ekmett): I have no complaints about adding them. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g 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 bgamari): duairc, would you like to submit a patch for this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g 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 duairc): Sure. I've added one here: https://phabricator.haskell.org/D1626 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: | Keywords: g Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1626 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D1626 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const
-------------------------------------+-------------------------------------
Reporter: duairc | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: libraries/base | Version: 7.11
Resolution: | Keywords: g
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1626
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: fixed | Keywords: g Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1626 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1626 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * keywords: g => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11210: Missing instances for Identity and Const -------------------------------------+------------------------------------- Reporter: duairc | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: libraries/base | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1626 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11210#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC