Skip to content

Commit 2ac5b2c

Browse files
authored
Merge pull request #39 from johnchildren/master
Update to LTS 13.13
2 parents 72ba31e + 71bb748 commit 2ac5b2c

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

curl-runnings.cabal

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.31.1.
3+
-- This file has been generated from package.yaml by hpack version 0.31.2.
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: e7cff7f0f8e0a24c815714efc642a28f90928aa4c4dc7cc5743c8bfb9ece772c
7+
-- hash: 107f33201b37a94190519b2e8eb100aa18aadf1f6567dca84d9482b4c7c68a8b
88

99
name: curl-runnings
1010
version: 0.10.0
@@ -43,9 +43,8 @@ library
4343
, hspec >=2.4.4
4444
, hspec-expectations >=0.8.2
4545
, http-client-tls >=0.3.5.3
46-
, http-conduit >=2.2.4
47-
, http-types >=0.9.1
48-
, megaparsec >=6.3.0
46+
, http-conduit >=2.3.6
47+
, megaparsec >=7.0.4
4948
, pretty-simple >=2.0.2.1
5049
, regex-posix >=0.95.2
5150
, text >=1.2.2.2

package.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ library:
3131
- directory >=1.3.0.2
3232
- hspec >= 2.4.4
3333
- hspec-expectations >=0.8.2
34-
- http-conduit >=2.2.4
35-
- http-types >=0.9.1
36-
- megaparsec >=6.3.0
34+
- http-conduit >=2.3.6
35+
- megaparsec >=7.0.4
3736
- connection >=0.2.8
3837
- http-client-tls >=0.3.5.3
3938
- pretty-simple >=2.0.2.1

src/Testing/CurlRunnings.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import qualified Data.Yaml.Include as YI
2727
import Network.Connection (TLSSettings (..))
2828
import Network.HTTP.Client.TLS (mkManagerSettings)
2929
import Network.HTTP.Conduit
30-
import Network.HTTP.Simple
31-
import qualified Network.HTTP.Types.Header as HTTP
30+
import Network.HTTP.Simple hiding (Header)
31+
import qualified Network.HTTP.Simple as HTTP
3232
import System.Directory
3333
import System.Environment
3434
import Testing.CurlRunnings.Internal

src/Testing/CurlRunnings/Internal/Parser.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ parseQuery q =
4848
let trimmed = T.strip q
4949
in case Text.Megaparsec.parse parseFullTextWithQuery "" trimmed of
5050
Right a -> Right a >>= validateQuery
51-
Left a -> Left $ QueryParseError (T.pack $ parseErrorPretty a) q
51+
Left a -> Left $ QueryParseError (T.pack $ errorBundlePretty a) q
5252

5353
-- | Once we have parsed a query successfully, ensure that it is a legal query
5454
validateQuery :: [InterpolatedQuery] -> Either QueryError [InterpolatedQuery]
@@ -137,11 +137,11 @@ interpolatedQueryParser = do
137137
else return $ InterpolatedQuery (T.pack text) q
138138

139139
leadingText :: Parser String
140-
leadingText = manyTill anyChar $ lookAhead (symbol "$<" <|> "${")
140+
leadingText = manyTill anySingle $ lookAhead (symbol "$<" <|> "${")
141141

142142
noQueryText :: Parser InterpolatedQuery
143143
noQueryText = do
144-
str <- some anyChar
144+
str <- some anySingle
145145
eof
146146
if "$<" `isInfixOf` str
147147
then fail "invalid `$<` found"

stack.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# resolver:
1616
# name: custom-snapshot
1717
# location: "./custom-snapshot.yaml"
18-
resolver: lts-12.14
18+
resolver: lts-13.13
1919

2020
# User packages to be built.
2121
# Various formats can be used as shown in the example below.
@@ -40,6 +40,8 @@ packages:
4040
# Dependency packages to be pulled from upstream that are not in the resolver
4141
# (e.g., acme-missiles-0.3)
4242
# extra-deps: []
43+
extra-deps:
44+
- pretty-simple-2.1.0.1
4345

4446
# Override default flag values for local packages and extra-deps
4547
# flags: {}

0 commit comments

Comments
 (0)