It worked! Thank you very much!

I added the following lines to hmatrix.cabal:

if os(linux)
     if arch(x86_64)
          cc-options: -fPIC

Maybe these lines should be included in future versions of the .cabal file.

Thank you very, very much!
Adrian-Victor