It seems that the crash in DotProd must be related to GHC-6.12.3 that I still mainly use. When I compile with GHC-7.4.1 the example runs correctly with llvm-base from bos' git repository with some minor patches.