Created
January 10, 2012 12:17
-
-
Save sanemat/1588756 to your computer and use it in GitHub Desktop.
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
main = do cs <- getContents | |
putStr cs |
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
$ ghc --version | |
The Glorious Glasgow Haskell Compilation System, version 7.0.4 | |
$ uname -mrsv | |
Darwin 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 | |
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
$ ghc cat.cs -o cat | |
ld: warning: ignoring file cat.cs, file was built for unsupported file format which is not the architecture being linked (i386) | |
ld: warning: could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog | |
Undefined symbols for architecture i386: | |
"___stginit_ZCMain", referenced from: | |
_main in libHSrtsmain.a(Main.o) | |
"_ZCMain_main_closure", referenced from: | |
_main in libHSrtsmain.a(Main.o) | |
ld: symbol(s) not found for architecture i386 | |
collect2: ld returned 1 exit status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Miss spell!
$ mv cat.cs cat.hs