urbanslug / wai-devel

A development server for wai applications.
MIT License
10 stars 6 forks source link

Attempting to install via hackage fails #13

Closed parsonsmatt closed 9 years ago

parsonsmatt commented 9 years ago

Attempting to install wai-devel through Hackage fails with following message:

λ ~/Projects/ cabal update
Downloading the latest package list from hackage.haskell.org
λ ~/Projects/ cabal install wai-devel
Resolving dependencies...
Configuring wai-devel-0.0.0.1...
Building wai-devel-0.0.0.1...
Failed to install wai-devel-0.0.0.1
Build log ( /home/matt/.cabal/logs/wai-devel-0.0.0.1.log ):
Configuring wai-devel-0.0.0.1...
Building wai-devel-0.0.0.1...
Preprocessing library wai-devel-0.0.0.1...
[ 1 of 11] Compiling Devel.Modules    ( src/Devel/Modules.hs, dist/build/Devel/Modules.o )
[ 2 of 11] Compiling Devel.Types      ( src/Devel/Types.hs, dist/build/Devel/Types.o )
[ 3 of 11] Compiling Devel.Paths      ( src/Devel/Paths.hs, dist/build/Devel/Paths.o )
[ 4 of 11] Compiling Devel.Compile    ( src/Devel/Compile.hs, dist/build/Devel/Compile.o )
[ 5 of 11] Compiling Devel.Watch      ( src/Devel/Watch.hs, dist/build/Devel/Watch.o )
[ 6 of 11] Compiling Devel.CmdArgs    ( src/Devel/CmdArgs.hs, dist/build/Devel/CmdArgs.o )
[ 7 of 11] Compiling Devel.ReverseProxy ( src/Devel/ReverseProxy.hs, dist/build/Devel/ReverseProxy.o )

src/Devel/ReverseProxy.hs:44:52:
    Exception when trying to run compile-time code:
      refreshing.html: openBinaryFile: does not exist (No such file or directory)
    Code: embedFile "refreshing.html"
    In the splice: $(embedFile "refreshing.html")
cabal: Error: some packages failed to install:
wai-devel-0.0.0.1 failed during the building phase. The exception was:
ExitFailure 1

My guess is that you need to add the refreshing.html file to extra-source-files in the Cabal file.

urbanslug commented 9 years ago

Oh my I am just seeing this issue. I will fix this right away.

urbanslug commented 9 years ago

@parsonsmatt Done, thanks.

parsonsmatt commented 9 years ago

Awesome, it's installing and working. Thanks! :D