[haskell-llvm] Type of function with no arguments

José Romildo Malaquias j.romildo at gmail.com
Thu Nov 22 15:48:02 GMT 2012


Hello.

What should be the type of an LLVM function that has no arguments and
returns an int32?

I have tried

  Function (() -> Int32)

but the llvm ir compiler does not accept it, with the error:

  llc: prog1.ll:3:18: error: void type only allowed for function results
  define i32 @main(void) {
                 ^
Romildo



More information about the Haskell-llvm mailing list