cabal-install の bootstrap.sh で module ‘foobar-0.0.0:Main’ is defined in multiple files ...
cabal-install の bootstrap.sh で module ‘stm-2.4.3:Main’ is defined in multiple files: ...
みたいなエラーが出てコケたときは、
% cd stm-2.4.3 % ./Setup install % cd ../ % ./bootstrap.sh
とやればよい。仕組みは不明。