Building a project with LTS-15.0/ghc-8.8.2, I hit the following error:
HaskellNet-SSL > [1 of 5] Compiling Network.HaskellNet.SSL
HaskellNet-SSL >
HaskellNet-SSL > /private/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/stack16499/HaskellNet-SSL-0.3.4.1/src/Network/HaskellNet/SSL.hs:6:33: error:
HaskellNet-SSL > Module ‘Network.Socket.Internal’ does not export ‘PortNumber’
HaskellNet-SSL > |
HaskellNet-SSL > 6 | import Network.Socket.Internal (PortNumber)
HaskellNet-SSL > | ^^^^^^^^^^
HaskellNet-SSL >
Solved by changing import of PortNumber in src/Network/HaskellNet/SSL.hs to:
import Network.Socket (PortNumber)
and by adding network-bsd to cabal file
network-bsd >= 2.8.1,
and by adding following extra-deps in stack.yml
extra-deps:
- git: git@github.com:jtdaugherty/HaskellNet.git
commit: 5aa1f3b009253b02c4822005ac59ee208a10a347
and finally, because I didn't want to dig into cabal file versioning, allow-newer in stack.yml
allow-newer: true
All this let's a build against LTS-15.0 complete.
thanks for the great work,
Stephen.
Building a project with LTS-15.0/ghc-8.8.2, I hit the following error:
Solved by changing import of PortNumber in src/Network/HaskellNet/SSL.hs to:
import Network.Socket (PortNumber)and by adding
network-bsdto cabal filenetwork-bsd >= 2.8.1,and by adding following extra-deps in stack.yml
and finally, because I didn't want to dig into cabal file versioning, allow-newer in stack.yml
allow-newer: trueAll this let's a build against LTS-15.0 complete.
thanks for the great work,
Stephen.