summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T9400.stderr
blob: 9e3f4184eaaa35b0fabe43fdc33579f1849efd25 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

T9400.hs:13:9: warning: [-Woverlapping-patterns (in -Wdefault)]
    Pattern match is redundant
    In a case alternative: [] -> ...

T9400.hs:18:9: warning: [-Woverlapping-patterns (in -Wdefault)]
    Pattern match is redundant
    In a case alternative: "" -> ...

==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 37, types: 22, coercions: 0, joins: 0/0}

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
$trModule1 :: Addr#
[GblId, Unf=OtherCon []]
$trModule1 = "main"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
$trModule2 :: TrName
[GblId, Unf=OtherCon []]
$trModule2 = GHC.Types.TrNameS $trModule1

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
$trModule3 :: Addr#
[GblId, Unf=OtherCon []]
$trModule3 = "T9400"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
$trModule4 :: TrName
[GblId, Unf=OtherCon []]
$trModule4 = GHC.Types.TrNameS $trModule3

-- RHS size: {terms: 3, types: 0, coercions: 0, joins: 0/0}
T9400.$trModule :: Module
[GblId, Unf=OtherCon []]
T9400.$trModule = GHC.Types.Module $trModule2 $trModule4

-- RHS size: {terms: 22, types: 15, coercions: 0, joins: 0/0}
main :: IO ()
[GblId]
main
  = >>
      @IO
      GHC.Base.$fMonadIO
      @()
      @()
      (putStrLn (unpackCString# "c"#))
      (>>
         @IO
         GHC.Base.$fMonadIO
         @()
         @()
         (putStrLn (unpackCString# "x"#))
         (>>
            @IO
            GHC.Base.$fMonadIO
            @()
            @()
            (putStrLn (unpackCString# "z"#))
            (>>
               @IO
               GHC.Base.$fMonadIO
               @()
               @()
               (putStrLn (unpackCString# "efg"#))
               (Control.Exception.Base.patError
                  @'LiftedRep @(IO ()) "T9400.hs:(17,5)-(18,29)|case"#))))