Why Haskell ghc does not work, but runghc works well? -



Why Haskell ghc does not work, but runghc works well? -

one code work runghc, can not compile same 1 ghc command. why?

below minimal code , environment: https://gist.github.com/1588756

works well:

$ runghc cat.hs

can not compile:

$ ghc cat.hs -o cat

macbook air, max os x snow leopard

the .cs extension shown in paste wrong;1 rename file cat.hs , it'll work fine.

this error message:

ld: warning: ignoring file cat.cs, file built unsupported file format not architecture beingness linked (i386)

occurs when pass file ghc doesn't know how handle; passes on straight linker, ignores it doesn't know, either. :)

1 @ to the lowest degree until ghc gets c# support...

haskell ghc

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -