haskell / happy

The Happy parser generator for Haskell
Other
276 stars 84 forks source link

Master (1.19.12): cabal install fails because of HappyTemplate #160

Closed andreasabel closed 4 years ago

andreasabel commented 4 years ago

The installation recipe given in the README fails in the installation step:

$ cabal configure && cabal build && cabal install
...
Building executable 'happy' for happy-1.19.12..
[15 of 19] Compiling Paths_happy      ( dist/build/happy/autogen/Paths_happy.hs, dist/build/happy/happy-tmp/Paths_happy.o )
Linking dist/build/happy/happy ...
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
cabal: filepath wildcard 'HappyTemplate' does not match any files.

Failed to install happy-1.19.12

It seems that the .cabal file lists data-files that do not exist:

...
data-files: 
        HappyTemplate
        HappyTemplate-arrays
...

Maybe just the install instructions are outdated? How to install happy from the git version?

andreasabel commented 4 years ago

To answer my own question:

make sdist && cabal install

seems to do the job.