From 3e9d0aa1b8e7635b5276282b8493515e1537bad2 Mon Sep 17 00:00:00 2001 From: Libby Horacek Date: Fri, 14 Jul 2017 14:00:04 -0400 Subject: [PATCH 1/4] Update to use ratel-0.4.0 --- stack.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stack.yaml b/stack.yaml index 06ba912..654af57 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,3 +1,9 @@ +packages: +- location: + git: https://github.com/positiondev/ratel + commit: 575bd233ec87230c29b2fa6bc70407cdee56cdd9 + extra-dep: true extra-deps: -- ratel-0.3.0 +- ratel-0.4.0 resolver: nightly-2016-07-15 + From 8147c3d2d7093edfa3cd01e1ff66635cf8ce3153 Mon Sep 17 00:00:00 2001 From: Libby Horacek Date: Fri, 14 Jul 2017 14:12:16 -0400 Subject: [PATCH 2/4] Update version number --- package.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.yaml b/package.yaml index d64e4bf..c4eea34 100644 --- a/package.yaml +++ b/package.yaml @@ -14,11 +14,11 @@ library: - case-insensitive ==1.2.* - containers ==0.5.* - http-client >=0.4.30 && <0.6 - - ratel ==0.3.* + - ratel ==0.4.* - wai ==3.2.* source-dirs: library license: MIT maintainer: Taylor Fausak name: ratel-wai synopsis: Notify Honeybadger about exceptions via a WAI middleware. -version: '0.2.0' +version: '0.3.0' From 7e61911786b755b3536097a66ab2c8e749b42a88 Mon Sep 17 00:00:00 2001 From: Libby Horacek Date: Sun, 16 Jul 2017 09:39:15 -0400 Subject: [PATCH 3/4] Add tfausak suggestions --- library/Ratel/Wai.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Ratel/Wai.hs b/library/Ratel/Wai.hs index c5a4af7..895dbba 100644 --- a/library/Ratel/Wai.hs +++ b/library/Ratel/Wai.hs @@ -17,8 +17,8 @@ ratelMiddleware apiKey maybeManager handle request respond = do (do handle request (\ response -> do respond response)) - (\ exception -> do - let err = Ratel.toError (exception :: Exception.SomeException) + (\ (Exception.SomeException exception) -> do + let err = Ratel.toError exception let req = Ratel.Request { Ratel.requestAction = Nothing , Ratel.requestCgiData = Just (Map.union From 9180277805e07edef50dfb76c676851bfec7bcba Mon Sep 17 00:00:00 2001 From: Libby Horacek Date: Mon, 17 Jul 2017 08:45:00 -0400 Subject: [PATCH 4/4] Bump ratel commit --- stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.yaml b/stack.yaml index 654af57..1ab9fef 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1,7 @@ packages: - location: git: https://github.com/positiondev/ratel - commit: 575bd233ec87230c29b2fa6bc70407cdee56cdd9 + commit: 901fa37decad1df832ae1411cc701d249b98edaf extra-dep: true extra-deps: - ratel-0.4.0