[Haskell-beginners] Netwire fromRational
Nathan Hüsken
nathan.huesken at posteo.de
Wed Oct 3 10:11:35 CEST 2012
Hey,
I noticed than when using this code:
(-1.0) . isKeyPressed leftKeyCode <|> 0.0
instead of
(pure (-1.0)) . isKeyPressed leftKeyCode <|> (pure 0.0)
than "fromRational" gets called. I am wondering, if this is not pretty
inefficient.
I am noticing this, because when I compile a netwire test program with
haste, the first code segment fails during runtime because of the primOp
newByteArray#.
Regards,
Nathan
More information about the Beginners
mailing list