* 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
-- | 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 }
executable konsum
main-is: konsum.hs
- build-depends: base >=4.6 && <5,
+ build-depends: base >= 4.6 && <5,
containers,
text,
crypton-connection,
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
executable agitprop
main-is: agitprop.hs
- build-depends: base >=4.6 && <5,
+ build-depends: base >= 4.6 && <5,
containers,
text,
crypton-connection,
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
network > 2.6,
tls >= 1.7.0,
amqp >=0.22.2,
- unix >= 2.7
+ unix >= 2.8
ghc-options: -threaded -Wall
executable arbeite
main-is: arbeite.hs
- build-depends: base >=4.6 && <5,
+ build-depends: base >= 4.6 && <5,
containers,
text,
crypton-connection,
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
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
#
# 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