Skip to content

Commit

Permalink
Merge pull request #288 from scotty-web/fix-windows-build
Browse files Browse the repository at this point in the history
Fix a Windows build error in the test suite
  • Loading branch information
friedbrice authored Nov 17, 2022
2 parents 3d56d73 + 89a38f8 commit ff4fa83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## next [????.??.??]

## 0.12.1 [2022.11.17]
* Fix CPP bug that prevented tests from building on Windows.
* Allow building with `transformers-0.6.*` and `mtl-2.3.*`. Because the
`MonadTrans t` class gained a `forall m. Monad m => Monad (t m)` superclass
in `transformers-0.6.0.0`, the `MonadTrans` and `MonadTransControl` instances
Expand Down
2 changes: 1 addition & 1 deletion scotty.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: scotty
Version: 0.12
Version: 0.12.1
Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
Homepage: https://github.com/scotty-web/scotty
Bug-reports: https://github.com/scotty-web/scotty/issues
Expand Down
3 changes: 1 addition & 2 deletions test/Web/ScottySpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ availableMethods = [GET, POST, HEAD, PUT, PATCH, DELETE, OPTIONS]

spec :: Spec
spec = do
let withApp = with . scottyApp
describe "ScottyM" $ do
forM_ [
("GET", Scotty.get, get)
Expand Down Expand Up @@ -186,8 +187,6 @@ spec = do
ok = "HTTP/1.1 200 OK"
no = "HTTP/1.1 404 Not Found"

withApp = with . scottyApp

socketPath :: FilePath
socketPath = "/tmp/scotty-test.socket"

Expand Down

0 comments on commit ff4fa83

Please sign in to comment.