Debian Codegraph @

tests/haskell/Types/2/error

raw
1 Main.hs:9.22-25: error:
2 • Could not derive 'Show t' arising from a use of 'show' at Main.hs:9.22-25
3 • In equation `main = do {System.IO.putStrLn Data.Function.$
4 (Text.Show.show Data.Function.$ (Main.bar 2 3))`
5 |
6 9 | main = do putStrLn $ show $ bar 2 3
7 | ^^^^
8
9 Main.hs:9.29-31: error:
10 • Could not derive 'Foo t' arising from a use of 'bar' at Main.hs:9.29-31
11 • In equation `main = do {System.IO.putStrLn Data.Function.$
12 (Text.Show.show Data.Function.$ (Main.bar 2 3))`
13 |
14 9 | main = do putStrLn $ show $ bar 2 3
15 | ^^^
16
17 Main.hs:9.35: error:
18 • Could not derive 'Num t' arising from a use of 'fromInteger' at Main.hs:9.35
19 • In equation `main = do {System.IO.putStrLn Data.Function.$
20 (Text.Show.show Data.Function.$ (Main.bar 2 3))`
21 |
22 9 | main = do putStrLn $ show $ bar 2 3
23 | ^
24