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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
T9400.hs:13:9: warning: [GHC-53633] [-Woverlapping-patterns (in -Wdefault)]
Pattern match is redundant
In a case alternative: [] -> ...
T9400.hs:18:9: warning: [GHC-53633] [-Woverlapping-patterns (in -Wdefault)]
Pattern match is redundant
In a case alternative: "" -> ...
==================== Tidy Core ====================
Result size of Tidy Core
= {terms: 48, types: 28, 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: 33, types: 21, 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"#))
(>>
@IO
GHC.Base.$fMonadIO
@()
@()
(case Control.Exception.Base.patError
@LiftedRep @() "T9400.hs:(17,5)-(18,29)|case"#
of wild {
})
(>>
@IO
GHC.Base.$fMonadIO
@()
@()
(putStrLn (unpackCStringUtf8# "abc"#))
(putStrLn
(unpackCStringUtf8#
"a\\197\\188\\195\\179\\197\\130\\196\\135z"#)))))))
|