summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_run/T19680A.hs
blob: 45d2e86adf380d8254a5efd89ae1bb2ff2e2cd37 (plain)
1
2
3
4
5
6
7
8
9
10
module Main where

main :: IO ()
main = do
    let x = -1e3 :: Rational
    print $ case x of
        1e3  -> "1"
        -1e3 -> "-1"
        _  -> "other"