basvandijk/scientific — pull request #17 by watashi (2014-07-08 01:19:44+00:00)
Title: Add predicates returning if the scientific is floating or integer

This would be useful when we need to make decision only based on whether the scientific it's floating point or integer. Especially when `warn-type-defaults` is on, we can write
```haskell
if isFloating s then d else i
```
instead of
```haskell
either (const d) (const i) (floatingOrInteger s :: Either Double Integer)
```
or
```haskell
case floatingOrInteger s of
Left (_ :: Double) -> d
Right (_ :: Integer) -> i
```