Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Peyton Jones
committed
Apr 29, 2013
1 parent
ae8959f
commit aee9b17
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module T7851 where | ||
|
||
import Control.Monad.Trans.State | ||
|
||
bar = do print | ||
print "Hello" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
T7851.hs:5:10: | ||
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" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters