#2759: Data.Generics.ConstrRep isn't general enough
----------------------------------+-----------------------------------------
Reporter: guest | Owner: dreixel
Type: bug | Status: assigned
Priority: normal | Milestone: 6.12 branch
Component: libraries (other) | Version: 6.10.1
Severity: minor | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
----------------------------------+-----------------------------------------
Comment (by dreixel):
The problem with
{{{
mkFloatConstr :: DataType -> Rational -> Constr
}}}
is that it breaks existing code which uses 'mkFloatConstr'. I would then
prefer to change 'mkIntConstr' to
{{{
mkIntConstr :: (Integral a) => DataType -> a -> Constr
}}}
instead.
I agree that the names are not ideal. We could also make them
'mkIntegralConstr' and 'mkRealConstr', deprecating the old ones, I guess.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2759#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs