#7492: Generic1 deriving: Can we replace Rec1 f with f :.: Par1?
-----------------------------+----------------------------------------------
Reporter:  spl               |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  7.7               |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
 It seems like `Rec1 f` is isomorphic to `f :.: Par1`. Is it possible and
 beneficial to replace the former with the latter and deprecate/remove
 `Rec1`?

  1. Currently, a parameter type is found in `Par1` or `Rec1`. By removing
 `Rec1`, there would be only one place for parameters. This simplifies
 generic functions.
  2. It is in the interest of reducing redundancy in the representation,
 something that appears to be consistent with the design of the
 representation types (e.g. using the same type for multiple meanings).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7492>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to