summaryrefslogtreecommitdiff
path: root/testsuite/tests/numeric/should_compile/T7895.hs
blob: e5dbfc9e2c980b83572df5d72e3c2f1c98263f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

{-# LANGUAGE NegativeLiterals #-}

module T7895 where

import Data.Int
import Data.Word

v1 :: Word8
v1 = 300

v2 :: Int8
v2 = -129

v3 :: Int8
v3 = -128

v4 :: Int8
v4 = -127

v5 :: Int8
v5 = -5

v6 :: Int8
v6 = 127