[GHC] #8697: Type rationals
GHC
ghc-devs at haskell.org
Mon Jan 27 21:28:19 UTC 2014
#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 carter):
@mike, you could actually use template haskell to write generate type
rationals pretty easily. It should also work with 7.6 and earlier ones,
though there may be a few corner cases in older ghcs
something like $(makeRatType 7/8) with makeRatType :: Rational -> Q
Type being suitably defined.
Have you tried out doing that as a near term solution?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8697#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list