summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T7851.stderr
blob: 289df8ad4053a4315319d77551b4565f6944d2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

T7851.hs:5:10: error:
    • Couldn't match expected type: IO a0
                  with actual type: a1 -> IO ()
    • Probable cause: ‘print’ is applied to too few arguments
      In a stmt of a 'do' block: print
      In the expression:
        do print
           print "Hello"
      In an equation for ‘bar’:
          bar
            = do print
                 print "Hello"