You may need to edit the cabal file to get the right libraries linked in. In particular, you may need to change "cblas" to "gslcblas". Or, if you are using ATLAS, you may need to add atlas at the end of the library list.