mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +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
|
||||
| Integer (Number.Integer i) <- target = pure . integer $ operator i
|
||||
| Float (Number.Decimal i) <- target = pure . integer $ operator (coefficient i)
|
||||
| otherwise = throwValueError (BitwiseError target)
|
||||
|
||||
liftBitwise2 operator left right
|
||||
|
Loading…
Reference in New Issue
Block a user