From 6ebf63ba29af2a5d6bf33790ee1d176f4a809111 Mon Sep 17 00:00:00 2001 From: Jake Wheat Date: Wed, 10 Jan 2024 16:17:30 +0000 Subject: [PATCH] get compiling with the latest stack lts (22.5) --- simple-sql-parser.cabal | 2 +- stack.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/simple-sql-parser.cabal b/simple-sql-parser.cabal index 9955f3f..bd5ad86 100644 --- a/simple-sql-parser.cabal +++ b/simple-sql-parser.cabal @@ -42,7 +42,7 @@ common shared-properties parser-combinators >= 1.3 && < 1.4, mtl >=2.1 && <2.4, prettyprinter >= 1.7 && < 1.8, - text >= 2.1 && < 2.2, + text >= 2.0 && < 2.2, containers >= 0.6 && < 0.8 ghc-options: -Wall diff --git a/stack.yaml b/stack.yaml index ffb9276..d2b4751 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,14 +1,18 @@ # For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration.html # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) -resolver: lts-13.27 +resolver: lts-22.5 # Local packages, usually specified by relative directory name packages: - '.' # Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) -extra-deps: [] +# todo: remove this once the version of megaparsec on Stack lts has the same api +# as the latest one as far as simple sql parser uses it (in this case, lts-22.5 +# has megaparsec 9.5, which doesn't support the megaparsec parser state feature +# in the same way 9.6 does) +extra-deps: [megaparsec-9.6.1] # Override default flag values for local packages and extra-deps flags: {}