]> woffs.de Git - fd/haskell-amqp-utils.git/commitdiff
update to ghc-9.6, unix-2.8 0.6.4.0
authorFrank Doepper <[email protected]>
Thu, 20 Jul 2023 14:29:40 +0000 (16:29 +0200)
committerFrank Doepper <[email protected]>
Thu, 20 Jul 2023 15:04:42 +0000 (17:04 +0200)
ChangeLog.md
Network/AMQP/Utils/Helpers.hs
amqp-utils.cabal
flake.nix
stack.yaml

index f7bd372ed0ff25964313ce90803c3a8347e33b2b..96a6014e13f7a2c58ffaeb1aa76b5e377486cc6a 100644 (file)
@@ -10,6 +10,7 @@ SPDX-License-Identifier: GPL-3.0-only
 
 * fix exception handling and avoid hang
 * migrate to crypton-connection and crypton-x509-system, adjust deps
+* update to ghc-9.6, unix-2.8
 
 ## 0.6.3.2  -- 2021-10-25
 
index cb6ed2a48eadf7e79c2fd4372b29a72dabc74e6c..f2f214326907ad4da4d189eeeaea160424526f4e 100644 (file)
@@ -434,12 +434,8 @@ firstInputFile ((x,_,_):_) = x
 -- | read RawFilePath to Lazy ByteString
 readFileRawLazy :: RawFilePath -> IO BL.ByteString
 readFileRawLazy path = do
-  h <- openFd path ReadOnly Nothing defaultFlags >>= fdToHandle
+  h <- openFd path ReadOnly defaultFlags >>= fdToHandle
   hSetBinaryMode h True
   BL.hGetContents h
   where
-    defaultFlags = OpenFileFlags { System.Posix.IO.ByteString.append = False
-                                 , exclusive = False
-                                 , noctty = True
-                                 , nonBlock = False
-                                 , trunc = False }
+    defaultFlags = defaultFileFlags { noctty = True }
index d0ef9f8c0f3ad4e1cac2bec906e376f24990cde1..d6660f74bf0f89730c4dd37bd8768a7ede587038 100644 (file)
@@ -39,7 +39,7 @@ Tested-With: GHC ==7.10.2 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || >=8.8.4
 
 executable konsum
   main-is:             konsum.hs
-  build-depends:       base >=4.6 && <5,
+  build-depends:       base >= 4.6 && <5,
                        containers,
                        text,
                        crypton-connection,
@@ -53,8 +53,8 @@ executable konsum
                        crypton-x509-system,
                        network > 2.6,
                        tls >= 1.7.0,
-                       amqp >=0.22.2,
-                       unix >= 2.7
+                       amqp >= 0.22.2,
+                       unix >= 2.8
 
   ghc-options:         -threaded -Wall
 
@@ -67,7 +67,7 @@ executable konsum
 
 executable agitprop
   main-is:             agitprop.hs
-  build-depends:       base >=4.6 && <5,
+  build-depends:       base >= 4.6 && <5,
                        containers,
                        text,
                        crypton-connection,
@@ -83,8 +83,8 @@ executable agitprop
                        crypton-x509-system,
                        network > 2.6,
                        tls >= 1.7.0,
-                       amqp >=0.22.2,
-                       unix >= 2.7,
+                       amqp >= 0.22.2,
+                       unix >= 2.8,
                        magic
   if os(linux)
     build-depends:     hinotify >= 0.3.10
@@ -115,7 +115,7 @@ executable plane
                        network > 2.6,
                        tls >= 1.7.0,
                        amqp >=0.22.2,
-                       unix >= 2.7
+                       unix >= 2.8
 
   ghc-options:         -threaded -Wall
 
@@ -128,7 +128,7 @@ executable plane
 
 executable arbeite
   main-is:             arbeite.hs
-  build-depends:       base >=4.6 && <5,
+  build-depends:       base >= 4.6 && <5,
                        containers,
                        text,
                        crypton-connection,
@@ -142,8 +142,8 @@ executable arbeite
                        crypton-x509-system,
                        network > 2.6,
                        tls >= 1.7.0,
-                       amqp >=0.22.2,
-                       unix >= 2.7
+                       amqp >= 0.22.2,
+                       unix >= 2.8
 
   ghc-options:         -threaded -Wall
 
index 8e95badec9b8a90291adbf3ee5d77f69b9cb2a6f..29e746e95f43eaefa7f0f4435a2b61a0f86cb31e 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -15,7 +15,7 @@
         pkgs = nixpkgs.legacyPackages.${system};
         t = pkgs.lib.trivial;
         hl = pkgs.haskell.lib;
-        hp = pkgs.haskellPackages;
+        hp = pkgs.haskell.packages.ghc96;
         project = { withEnv ? false }:
           hp.developPackage {
             root = ./.;
               amqp = hl.dontCheck super.amqp_0_22_2;
               tls = super.tls_1_7_0;
               crypton-connection = super.crypton-connection.override { inherit tls; };
+              rawfilepath = hl.overrideCabal super.rawfilepath {
+                src = pkgs.fetchFromGitHub {
+                  owner = "georgefst";
+                  repo = "rawfilepath";
+                  rev = "044079fa0c3a407037be9086fab92f1209dfb1a8";
+                  hash = "sha256-2LFMLjhm6lLzXTditN0pi9R4QKg0zdBsDOPhcQUD1lQ=";
+                };
+              };
             };
             modifier = (t.flip t.pipe) [
               hl.dontHaddock
index 185c5ae6232c68e2acfb1e8ca47ab6fa1fbd5c18..3dcf7ce4297884f663a9ce3248931c37c7c7c982 100644 (file)
@@ -2,10 +2,14 @@
 #
 # SPDX-License-Identifier: GPL-3.0-only
 
-resolver: lts-19.15
+resolver: nightly-2023-07-19
 flags: {}
 extra-package-dbs: []
 packages:
 - '.'
 nix:
   packages: [ file ]
+extra-deps:
+- amqp-0.22.2
+- git: https://github.com/georgefst/rawfilepath/
+  commit: 044079fa0c3a407037be9086fab92f1209dfb1a8