agocorona / MFlow

(Haskell) Web application server with stateful, type safe user interactions and widget combinators
http://mflowdemo.herokuapp.com
Other
100 stars 12 forks source link

Breakage with Warp 2.1.1 #20

Closed snoyberg closed 10 years ago

snoyberg commented 10 years ago
Component build order: library
creating dist/build
creating dist/build/autogen
Building MFlow-0.3.3...
Preprocessing library MFlow-0.3.3...
Building library...
'/opt/ghc-7.4.2/bin/ghc' '--info'
'/opt/ghc-7.4.2/bin/ghc' '--info'
creating dist/build
/opt/ghc-7.4.2/bin/ghc --make -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -isrc -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -package-name MFlow-0.3.3 -hide-all-packages -no-user-package-conf -package-conf /var/lib/jenkins/workspace/Stackage with GHC 7.4.2/stackage/sandbox/package-db -package-conf dist/package.conf.inplace -package-id RefSerialize-0.3.1.0-23a78fe5db3ff6a6641604cb2779cb53 -package-id TCache-0.11.0.0-9236c2bceffa6f0605d892a22a61b1da -package-id Workflow-0.8.0.8-83df88676b1c94eb2d6afe9c9bb44745 -package-id base-4.5.1.0-66f22db3dfcd87541c9c7e50e7095d26 -package-id blaze-html-0.7.0.1-63dcd7ceb9ee85974e2593ccc90c7127 -package-id blaze-markup-0.6.0.0-d25ad8e3e3d117854ec9ec0d9b908a7c -package-id bytestring-0.9.2.1-503e91bb155301fdb1956cb5c26ce6e9 -package-id case-insensitive-1.1.0.3-ad03242e197646fef7502352fce72fb8 -package-id conduit-1.0.15.1-65d2e38ea13f1cb5cf6774233451bd9f -package-id containers-0.4.2.1-75f143aa39a3e77a1ce2300025bdd8ce -package-id directory-1.1.0.2-90bfc47dbd5ac1313aec9ce76cc22338 -package-id extensible-exceptions-0.1.1.4-3d9bd197c43329612c640f24179a7f19 -package-id hamlet-1.1.9.2-2a19d518742561b24c22d7a14915c6ba -package-id http-types-0.8.3-62528930d76e8c6f0a294e339f01ca67 -package-id monadloc-0.7.1-55acf3f7e7c6e7b44f6fc3e07cf277b2 -package-id mtl-2.1.2-02e701f9b1590ee88a0b5b0bd5d93a29 -package-id old-time-1.1.0.0-703543375fafbcbe67bc51a758e84f10 -package-id parsec-3.1.3-e1780f9779adb01e37c70bb6a49db393 -package-id random-1.0.1.1-c7787dee61cd418f6edd479355fe381c -package-id stm-2.4-464c94c0d4d2a3fb7bf1cd1f8648d14d -package-id text-0.11.3.1-41f05eb413a8fa91f09d91d3051e4ae4 -package-id transformers-0.3.0.0-8e66ecc7d4dae2b07b2b5406908c70e4 -package-id utf8-string-0.3.7-3aaf9898eec3e39af0177630d5dff0c3 -package-id vector-0.10.0.1-3450daae3d9f2092020075d05481123c -package-id wai-2.1.0-278eca80b020d4704c1d76e3f4ed8f6d -package-id warp-2.1.1-ea06bb7302c0d4c95e41271cf13839af -package-id xhtml-3000.2.1-290aa859a8b955ebda95b5ca3b1b69f3 -XHaskell98 MFlow MFlow.Wai.Blaze.Html.All MFlow.Forms MFlow.Forms.Admin MFlow.Cookies MFlow.Wai MFlow.Wai.XHtml.All MFlow.Forms.XHtml MFlow.Forms.Blaze.Html MFlow.Forms.Test MFlow.Forms.Widgets MFlow.Forms.Internals MFlow.Wai.Response
[ 1 of 13] Compiling MFlow.Cookies    ( src/MFlow/Cookies.hs, dist/build/MFlow/Cookies.o )
[ 2 of 13] Compiling MFlow            ( src/MFlow.hs, dist/build/MFlow.o )
[ 3 of 13] Compiling MFlow.Forms.Internals ( src/MFlow/Forms/Internals.hs, dist/build/MFlow/Forms/Internals.o )
[ 4 of 13] Compiling MFlow.Forms      ( src/MFlow/Forms.hs, dist/build/MFlow/Forms.o )
[ 5 of 13] Compiling MFlow.Forms.Blaze.Html ( src/MFlow/Forms/Blaze/Html.hs, dist/build/MFlow/Forms/Blaze/Html.o )
[ 6 of 13] Compiling MFlow.Forms.XHtml ( src/MFlow/Forms/XHtml.hs, dist/build/MFlow/Forms/XHtml.o )
[ 7 of 13] Compiling MFlow.Forms.Admin ( src/MFlow/Forms/Admin.hs, dist/build/MFlow/Forms/Admin.o )
[ 8 of 13] Compiling MFlow.Forms.Widgets ( src/MFlow/Forms/Widgets.hs, dist/build/MFlow/Forms/Widgets.o )
[ 9 of 13] Compiling MFlow.Wai.Response ( src/MFlow/Wai/Response.hs, dist/build/MFlow/Wai/Response.o )
[10 of 13] Compiling MFlow.Wai        ( src/MFlow/Wai.hs, dist/build/MFlow/Wai.o )
[11 of 13] Compiling MFlow.Wai.Blaze.Html.All ( src/MFlow/Wai/Blaze/Html/All.hs, dist/build/MFlow/Wai/Blaze/Html/All.o )

src/MFlow/Wai/Blaze/Html/All.hs:76:14:
    Ambiguous occurrence `getPort'
    It could refer to either `MFlow.Wai.Blaze.Html.All.getPort',
                             defined at src/MFlow/Wai/Blaze/Html/All.hs:56:1
                          or `Network.Wai.Handler.Warp.getPort',
                             imported from `Network.Wai.Handler.Warp' at src/MFlow/Wai/Blaze/Html/All.hs:39:1-31
agocorona commented 10 years ago

Uploaded a new version to Hackage

snoyberg commented 10 years ago

You mean version 0.4.0? I get the exact same compiler error (though now it's line 58, not 56).

agocorona commented 10 years ago

Ops....

I couldn't test it with the new warp version yet.

But taking the risk again, if figure out that the 0.4.1 solves it

2014-03-12 5:38 GMT+01:00, Michael Snoyman notifications@github.com:

You mean version 0.4.0? I get the exact same compiler error (though now it's line 58, not 56).


Reply to this email directly or view it on GitHub: https://github.com/agocorona/MFlow/issues/20#issuecomment-37374928

Alberto.

snoyberg commented 10 years ago

Yes, this fixes that bug. Closing this issue.

However, Stackage is not able to incorporate the new version of MFlow due to the reliance on acid-state, which does not work with bytestring 0.9. So I've put in an upper bound in the Stackage config file and included a patch to fixes 0.3.3 for the Warp breakage.

agocorona commented 10 years ago

Oh,

My mistake . MFlow does not rely on Acid-state. One of the examples uses it.

I created a new version 0.4.2 that has that dependency removed.

2014-03-12 11:53 GMT+01:00, Michael Snoyman notifications@github.com:

Closed #20.


Reply to this email directly or view it on GitHub: https://github.com/agocorona/MFlow/issues/20

Alberto.

snoyberg commented 10 years ago

Awesome, thanks!