summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_pragma.stderr
blob: 0baf21c564ca930765afeedf0e4aa75d703f1a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TH_pragma.hs:(6,2)-(8,28): Splicing declarations
    [d| foo :: Int -> Int
        {-# NOINLINE foo #-}
        foo x = x + 1 |]
  ======>
    foo :: Int -> Int
    {-# NOINLINE foo #-}
    foo x = (x + 1)
TH_pragma.hs:(10,2)-(12,33): Splicing declarations
    [d| bar :: Num a => a -> a
        {-# SPECIALISE INLINE [~1] bar :: Float -> Float #-}
        bar x = x * 10 |]
  ======>
    bar :: Num a => a -> a
    {-# SPECIALISE INLINE [~1] bar :: Float -> Float #-}
    bar x = (x * 10)