[GHC] #6135: Unboxed Booleans
GHC
cvs-ghc at haskell.org
Thu Apr 11 18:17:49 CEST 2013
#6135: Unboxed Booleans
---------------------------------+------------------------------------------
Reporter: benl | Owner: jstolarek
Type: feature request | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: #605 |
---------------------------------+------------------------------------------
Comment(by simonmar):
Replying to [comment:31 benl]:
> there is really no reason to suggest that the result of a boolean
comparison operator might be negative! I suspect the reason tagToEnum#
currently takes an Int# is because literals like 5# are Int#.
There's no reason to suggest that the result of a boolean comparison might
be 3, yet `Word#` includes that value. I don't think `Int#` is any worse
than `Word#` in including lots of impossible values, and furthermore
there's a lot less friction to using `Int#` because everything else uses
it. Just saying.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6135#comment:37>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list