scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.71k stars 132 forks source link

doesn't compile against ghc 9.6.3 seems to need a version bump #347

Closed GeorgeCo closed 7 months ago

GeorgeCo commented 8 months ago

ghc --version The Glorious Glasgow Haskell Compilation System, version 9.6.3 bash-3.2$

cabal install --lib blank-canvas Resolving dependencies... Error: cabal: Could not resolve dependencies: [0] trying: blank-canvas-0.7.4 (user goal) [1] trying: scotty-0.20.1 (dependency of blank-canvas) [2] next goal: bytestring (user goal) [2] rejecting: bytestring-0.12.0.2/installed-7ba28044 (conflict: scotty => bytestring>=0.10.0.2 && <0.12) [2] skipping: bytestring-0.12.0.2, bytestring-0.12.0.1, bytestring-0.12.0.0 (has the same characteristics that caused the previous version to fail: excluded by constraint '>=0.10.0.2 && <0.12' from 'scotty') [2] rejecting: bytestring-0.11.5.3, bytestring-0.11.5.2/installed-0.11.5.2, bytestring-0.11.5.2, bytestring-0.11.5.1, bytestring-0.11.5.0, bytestring-0.11.4.0, bytestring-0.11.3.1, bytestring-0.11.3.0, bytestring-0.11.2.0, bytestring-0.11.1.0, bytestring-0.11.0.0, bytestring-0.10.12.1, bytestring-0.10.12.0, bytestring-0.10.10.1, bytestring-0.10.10.0, bytestring-0.10.9.0, bytestring-0.10.8.2, bytestring-0.10.8.1, bytestring-0.10.8.0, bytestring-0.10.6.0, bytestring-0.10.4.1, bytestring-0.10.4.0, bytestring-0.10.2.0, bytestring-0.10.0.2, bytestring-0.10.0.1, bytestring-0.10.0.0, bytestring-0.9.2.1, bytestring-0.9.2.0, bytestring-0.9.1.10, bytestring-0.9.1.9, bytestring-0.9.1.8, bytestring-0.9.1.7, bytestring-0.9.1.6, bytestring-0.9.1.5, bytestring-0.9.1.4, bytestring-0.9.1.3, bytestring-0.9.1.2, bytestring-0.9.1.1, bytestring-0.9.1.0, bytestring-0.9.0.4, bytestring-0.9.0.3, bytestring-0.9.0.2, bytestring-0.9.0.1, bytestring-0.9 (constraint from user target requires ==0.12.0.2) [__2] fail (backjumping, conflict set: bytestring, scotty)

The preceding works with --allow-new

ocramz commented 7 months ago

Looks like we need to relax the upper bound on bytestring.

RyanGlScott commented 7 months ago

Probably also worth revising the upper bounds on bytestring on the latest Hackage release.

ocramz commented 7 months ago

@RyanGlScott adjusted bytestring UB on scotty-0.20.1 👍

GeorgeCo commented 7 months ago

there is the same problem with the text package, should I file a separate issue?

cabal install --lib scotty Resolving dependencies... Error: cabal: Could not resolve dependencies: [0] trying: scotty-0.20.1 (user goal) [1] next goal: text (user goal) [1] rejecting: text-2.1/installed-0f57 (conflict: scotty => text>=0.11.3.1 && <2.1) [1] skipping: text-2.1 (has the same characteristics that caused the previous version to fail: excluded by constraint '>=0.11.3.1 && <2.1' from 'scotty') [1] rejecting: text-2.0.2, text-2.0.1, text-2.0, text-1.2.5.0, text-1.2.4.1, text-1.2.4.0, text-1.2.3.2, text-1.2.3.1, text-1.2.3.0, text-1.2.2.2, text-1.2.2.1, text-1.2.2.0, text-1.2.1.3, text-1.2.1.2, text-1.2.1.1, text-1.2.1.0, text-1.2.0.6, text-1.2.0.5, text-1.2.0.4, text-1.2.0.3, text-1.2.0.2, text-1.2.0.0, text-1.1.1.4, text-1.1.1.3, text-1.1.1.2, text-1.1.1.1, text-1.1.1.0, text-1.1.0.1, text-1.1.0.0, text-1.0.0.1, text-1.0.0.0, text-0.11.3.1, text-0.11.3.0, text-0.11.2.3, text-0.11.2.2, text-0.11.2.1, text-0.11.2.0, text-0.11.1.13, text-0.11.1.12, text-0.11.1.11, text-0.11.1.10, text-0.11.1.9, text-0.11.1.8, text-0.11.1.7, text-0.11.1.6, text-0.11.1.5, text-0.11.1.3, text-0.11.1.2, text-0.11.1.1, text-0.11.1.0, text-0.11.0.8, text-0.11.0.7, text-0.11.0.6, text-0.11.0.5, text-0.11.0.4, text-0.11.0.3, text-0.11.0.2, text-0.11.0.1, text-0.11.0.0, text-0.10.0.2, text-0.10.0.1, text-0.10.0.0, text-0.9.1.0, text-0.9.0.1, text-0.9.0.0, text-0.8.1.0, text-0.8.0.0, text-0.7.2.1, text-0.7.1.0, text-0.7.0.1, text-0.7, text-0.6, text-0.5, text-0.4, text-0.3, text-0.2, text-0.1 (constraint from user target requires ==2.1) [1] fail (backjumping, conflict set: scotty, text) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: text, scotty