
#8697: Type rationals -------------------------------------+------------------------------------ Reporter: MikeIzbicki | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by MikeIzbicki): @carter I'm not sure what you're suggesting. The following code (combined with the code above) does exactly what I want: {{{ data Blah (num::Frac) = Blah f :: Blah num -> Rational f = ... g = f (Blah::Blah (13/10)) }}} It would just be nice to be able to write {{{ g = f (Blah::Blah 1.3) }}} instead. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8697#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler