blob: fb44e0f576eb190d1ac8b8f3fed166bed64c57b5 (
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
|
==================== Tidy Core ====================
Result size of Tidy Core
= {terms: 110, types: 177, coercions: 0, joins: 0/3}
$trModule = Module (TrNameS "main"#) (TrNameS "Test"#)
gpio
= \ i_amK ->
(i_amK, <$> $fFunctor[] (pure $fApplicativeMaybe) i_amK)
decodeReq
= \ ds_dY6 ->
case == $fEqInteger ds_dY6 (IS 0#) of {
False ->
case == $fEqInteger ds_dY6 (IS 1#) of {
False -> fmap $fFunctor[] id;
True -> id
};
True -> fmap $fFunctor[] (const ())
}
ram = fmap $fFunctor[] (pure $fApplicativeMaybe)
core = fmap $fFunctor[] (maybe () id)
topEntity
= letrec {
ds_dYh = gpio (decodeReq (IS 1#) req_aWD);
ds1_dYi = gpio (decodeReq (IS 2#) req_aWD);
req_aWD
= $ core
(<*>
$fApplicative[]
(<$>
$fFunctor[]
(<|> $fAlternativeMaybe)
(ram (decodeReq (IS 0#) req_aWD)))
(<*>
$fApplicative[]
(<$>
$fFunctor[]
(<|> $fAlternativeMaybe)
(case ds_dYh of { (outport1_aWz, outResp1_X2) -> outResp1_X2 }))
(case ds1_dYi of { (outport2_aWJ, outResp2_X2) ->
outResp2_X2
}))); } in
<*>
$fApplicative[]
(<$>
$fFunctor[]
(\ ds2_dYf ds3_dYg -> (ds2_dYf, ds3_dYg))
(case ds_dYh of { (outport1_aWz, outResp1_X2) -> outport1_aWz }))
(case ds1_dYi of { (outport2_aWJ, outResp2_X2) -> outport2_aWJ })
|