summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/Ppr038.hs
blob: 43fafaf01c023b52fa57f6c827f5cd6f0e2495ca (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 MagicHash #-}
module LiteralsTest2 where

x,y :: Int
x = 0003
y = 0x04

s :: String
s = "\x20"

c :: Char
c = '\x20'

d :: Double
d = 0.00

blah = x
  where
    charH = '\x41'#
    intH = 0004#
    wordH = 005##
    floatH = 3.20#
    doubleH = 04.16##
    -- int64H = 00456L#
    -- word64H = 00456L##
    x = 1