Skip to content

Instantly share code, notes, and snippets.

@sanemat
Created January 10, 2012 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanemat/1588756 to your computer and use it in GitHub Desktop.
Save sanemat/1588756 to your computer and use it in GitHub Desktop.
main = do cs <- getContents
putStr cs
$ 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
$ 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
@sanemat
Copy link
Author

sanemat commented Jan 10, 2012

Miss spell!
$ mv cat.cs cat.hs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment