diff --git a/package.yaml b/package.yaml index ce4f42a9c..88889931c 100644 --- a/package.yaml +++ b/package.yaml @@ -22,7 +22,7 @@ extra-source-files: - CHANGELOG.md dependencies: - - ansi-terminal == 0.10.* + - ansi-terminal >= 0.10 && < 0.12 - asn1-encoding == 0.9.* - asn1-types == 0.3.* - async == 2.2.* @@ -31,21 +31,21 @@ dependencies: - base64-bytestring >= 1.0 && < 1.3 - bytestring == 0.10.* - composition == 1.0.* - - constraints == 0.12.* + - constraints >= 0.12 && < 0.14 - containers == 0.6.* - - cryptonite == 0.27.* + - cryptonite >= 0.27 && < 0.30 - direct-sqlite == 2.3.* - directory == 1.3.* - file-embed == 0.0.14.* - filepath == 1.4.* - - generic-random == 1.3.* + - generic-random >= 1.3 && < 1.5 - iso8601-time == 0.1.* - memory == 0.15.* - mtl == 2.2.* - network == 3.1.* - network-transport == 0.5.* - QuickCheck == 2.14.* - - random == 1.1.* + - random >= 1.1 && < 1.3 - simple-logger == 0.1.* - sqlite-simple == 0.4.* - stm == 2.5.* @@ -68,7 +68,7 @@ executables: dependencies: - cryptostore == 0.2.* - ini == 0.4.* - - optparse-applicative == 0.15.* + - optparse-applicative >= 0.15 && < 0.17 - simplexmq ghc-options: - -threaded @@ -90,7 +90,6 @@ tests: - hspec == 2.7.* - hspec-core == 2.7.* - HUnit == 1.6.* - - random == 1.1.* - QuickCheck == 2.14.* - timeit == 2.0.* diff --git a/stack.yaml b/stack.yaml index ae97d2a94..70267dd80 100644 --- a/stack.yaml +++ b/stack.yaml @@ -17,7 +17,7 @@ # # resolver: ./custom-snapshot.yaml # resolver: https://example.com/snapshots/2018-01-01.yaml -resolver: lts-17.12 +resolver: lts-18.0 # User packages to be built. # Various formats can be used as shown in the example below. diff --git a/tests/AgentTests/SQLiteTests.hs b/tests/AgentTests/SQLiteTests.hs index 6dd69da19..56fd88514 100644 --- a/tests/AgentTests/SQLiteTests.hs +++ b/tests/AgentTests/SQLiteTests.hs @@ -27,7 +27,7 @@ import Simplex.Messaging.Agent.Store import Simplex.Messaging.Agent.Store.SQLite import qualified Simplex.Messaging.Agent.Store.SQLite.Migrations as Migrations import qualified Simplex.Messaging.Crypto as C -import System.Random (Random (randomIO)) +import System.Random import Test.Hspec import UnliftIO.Directory (removeFile)