[GHC] #10297: Floating instance for Data.Fixed

#10297: Floating instance for Data.Fixed -------------------------------------+------------------------------------- Reporter: dmcclean | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.10.1 Component: | Operating System: Unknown/Multiple libraries/base | Type of failure: None/Unknown Keywords: | Blocked By: Architecture: | Related Tickets: Unknown/Multiple | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- I'd like to contribute a Floating instance for Data.Fixed. I'm concerned that it may be undesirable for a reason that is not occurring to me; I'd be pleased to learn of any objections. In concept it's this, although I will investigate if there is an implementation with better performance: {{{ lift :: (HasResolution a) => (Double -> Double) -> Fixed a -> Fixed a lift f = realToFrac . f . realToFrac instance (HasResolution a) => Floating (Fixed a) where pi = realToFrac pi sin = lift sin -- etc, similar lift2 function for (**), logBase }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10297 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10297: Floating instance for Data.Fixed -------------------------------------+------------------------------------- Reporter: dmcclean | Owner: Type: feature request | Status: new Priority: normal | Milestone: 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: -------------------------------------+------------------------------------- Comment (by ekmett): This should really go through the libraries@ mailing list as a proposal first. That'll let more eyeballs see it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10297#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10297: Floating instance for Data.Fixed -------------------------------------+------------------------------------- Reporter: dmcclean | Owner: Type: feature request | Status: new Priority: normal | Milestone: 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: -------------------------------------+------------------------------------- Comment (by dmcclean): Will do after work. I was unaware of the appropriate procedure. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10297#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10297: Floating instance for Data.Fixed -------------------------------------+------------------------------------- Reporter: dmcclean | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.10.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by dmcclean): * status: new => closed * resolution: => wontfix Comment: There are actually a few problems with this idea. Sorry for not discovering them before creating this ticket. :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10297#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC