Note that there are some explanatory texts on larger screens.

plurals
  1. POshakespeare-js fails to compile on Heroku
    primarykey
    data
    text
    <p>When deploying my simple Yesod application to Heroku cabal fails when installing shakespeare-js-1.0.2 </p> <pre><code>Building shakespeare-js-1.0.2... Building persistent-1.0.2.2... Building yaml-0.8.2.1... Building tls-extra-0.6.1... Failed to install shakespeare-js-1.0.2 Last 10 lines of the build log ( /app//.cabal/logs/shakespeare-js-1.0.2.log ): Building shakespeare-js-1.0.2... Preprocessing library shakespeare-js-1.0.2... [1 of 3] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o ) [2 of 3] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) Text/Coffee.hs:56:7: `preEscapeBegin' is not a (visible) field of constructor `PreConvert' Text/Coffee.hs:57:7: `preEscapeEnd' is not a (visible) field of constructor `PreConvert' </code></pre> <p>The project is a simple website that uses WAI and Warp to print a hello world. In my cabal file I only specify the latest version of yesod (1.1.9) to see if it was available on Heroku (It doesn't use Yesod or shakespeare-js yet):</p> <pre><code>executable Website extensions:NoImplicitPrelude TemplateHaskell QuasiQuotes OverloadedStrings CPP MultiParamTypeClasses TypeFamilies GADTs GeneralizedNewtypeDeriving FlexibleContexts EmptyDataDecls NoMonomorphismRestriction main-is: source/Main.hs -- other-modules: build-depends: base == 4.5.* , http-types , template-haskell , wai , wai-extra , warp , yesod == 1.1.9 </code></pre> <p>This project builds and runs locally on my VM with similar stack, this includes shakespeare-js-1.0.2.</p> <p>I tried the following:</p> <ul> <li>Forcing a newer or older version of shakespeare-js other than 1.0.2 in the .cabal file. The same compile error shows up.</li> <li>As a shot in the dark, I tried removing some extensions that might affect compilation such as TemplateHaskell from the .cabal file.</li> </ul> <p>Edit:</p> <ul> <li>When I use shakespeare-js &lt; 1.0.2 I get a compile error after heroku chooses 1.0.1 which also fails to compile.</li> <li>I can not get shakespeare-js-1.1.2 (the most recent version) to compile anywhere, not even locally.</li> </ul> <p>I solved the error by forcing shakespeare &lt; 1.0.3 This does not solve the problem of not being able to compile the most recent versions of shakespeare (yesod).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload