Install first the library, then the compiler. For the library: in directory 'lib': cabal install For the compiler: in directory 'compiler': cabal install