HI,

I am learning haskell by writing small programs. In this instance I want to write a program using the haskell binding of the NCurses library.

Here is the (rather simple) code:

import UI.NCurses

main = do
  putStrLn "Hello World"


When I try to run it:

$ runhaskell cursesprog.hs
cursesprog.hs: <command line>: can't load .so/.DLL for: ncursesw (/usr/lib/libncursesw.so: file too short)

The file certainly exists but is only 32 bytes. I installed from Ubuntu's package manager. I am working on a 64 bit machine (if that helps).

Can someone help me fix this?

Thanks,
Aditya.