#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 igloo):
Hmm, it seems inconsistent to have these two:
{{{
mkIntConstr :: DataType -> Integer -> Constr
mkFloatConstr :: (Real a) => DataType -> a -> Constr
}}}
Shouldn't it either be
{{{
mkIntConstr :: DataType -> Integer -> Constr
mkFloatConstr :: DataType -> Rational -> Constr
}}}
or
{{{
mkIntConstr :: (Integral a) => DataType -> a -> Constr
mkFloatConstr :: (Real a) => DataType -> a -> Constr
}}}
?
The `*Float*` names are also confusing, but presumably the plan is to
transition away from them?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2759#comment:4>
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