mirror of
https://github.com/github/semantic.git
synced 2025-01-07 07:58:12 +03:00
adjust liftBitwise to include float
This commit is contained in:
parent
da79989904
commit
bf0d2c0418
@ -269,6 +269,7 @@ instance ( Coercible body (Eff effects)
|
|||||||
|
|
||||||
liftBitwise operator target
|
liftBitwise operator target
|
||||||
| Integer (Number.Integer i) <- target = pure . integer $ operator i
|
| Integer (Number.Integer i) <- target = pure . integer $ operator i
|
||||||
|
| Float (Number.Decimal i) <- target = pure . integer $ operator (coefficient i)
|
||||||
| otherwise = throwValueError (BitwiseError target)
|
| otherwise = throwValueError (BitwiseError target)
|
||||||
|
|
||||||
liftBitwise2 operator left right
|
liftBitwise2 operator left right
|
||||||
|
Loading…
Reference in New Issue
Block a user