# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.8.5.1.9999
#hackport: flags: -pedantic

CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal

DESCRIPTION="Secure WebSocket (WSS) clients"
HOMEPAGE="https://hackage.haskell.org/package/wuss"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"

CABAL_CHDEPS=(
	'base ^>=4.18.0.0 || ^>=4.19.0.0 || ^>=4.20.0.0' 'base'
	'bytestring ^>=0.11.4.0 || ^>=0.12.0.2' 'bytestring'
	'exceptions ^>=0.10.7' 'exceptions'
)

RDEPEND="
	>=dev-haskell/crypton-connection-0.3.2:=[profile?] <dev-haskell/crypton-connection-0.5
	>=dev-haskell/data-default-0.7.1.1:=[profile?] <dev-haskell/data-default-0.8
	>=dev-haskell/network-3.1.4.0:=[profile?] <dev-haskell/network-3.3
	>=dev-haskell/websockets-0.12.7.3:=[profile?] <dev-haskell/websockets-0.14
	>=dev-lang/ghc-9.2.4:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.6.3.0
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=-pedantic
}