scotty-web / wai-middleware-static

WAI middleware that intercepts requests to static files and serves them if they exist.
Other
18 stars 12 forks source link

GHC 8 Support #14

Closed creichert closed 8 years ago

creichert commented 8 years ago

A new stackage nightly is ready for GHC 8 (nightly-2016-05-26). wai-middleware-static was temporarily pulled from stackage for GHC 8 compatibility.

Links for reference:

Here is the first set of error messages I get trying to compile w/ the new resolver:

Resolver 'nightly-2016-05-26' does not have all the packages to match your requirements.
    expiring-cache-map not found
        - wai-middleware-static requires >=0.0.5 && <0.1
    hpc-coveralls not found
        - wai-middleware-static requires -any
RyanGlScott commented 8 years ago

Huh, I'm a bit perplexed that wai-middleware-static was blocked from a GHC 8.0 resolver, since I updated it a couple of days ago to be 8.0-compliant.

That being said, hpc-coveralls (on which wai-middleware-static's test suite depends) doesn't currently build with GHC 8.0 (hpc-coveralls-1.0.4 has a restrictive upper bound on transformers), so perhaps this is blocked on hpc-coveralls being updated.

RyanGlScott commented 8 years ago

Sorry, hpc-coveralls isn't the problem, but rather its dependency retry, which has restrictive upper version bounds on ghc-prim. There's an open issue here and here.

MichaelXavier commented 8 years ago

Just a heads up, the relaxed upper bound has been released at 0.7.3. Let me know if you guys need anything else to unblock. Thanks!

creichert commented 8 years ago

@MichaelXavier @RyanGlScott Thanks a lot for the quick responses

RyanGlScott commented 8 years ago

Opened https://github.com/fpco/stackage/pull/1497 to add wai-middleware-static back to Stackage.

RyanGlScott commented 8 years ago

And now it's back in Stackage.

creichert commented 8 years ago

@RyanGlScott Thanks again, very happy about this