tensorflow / haskell

Haskell bindings for TensorFlow
https://tensorflow.github.io/haskell/haddock/
Apache License 2.0
1.58k stars 196 forks source link

Fix min version guard for Cabal #290

Closed kenranunderscore closed 1 year ago

kenranunderscore commented 1 year ago

I was still getting build failures of tensorflow-core-ops even after #289:

/home/johannes/ag/anomaly-detection/ghc-90/haskell/tensorflow-core-ops/dist-newstyle/build/x86_64-linux/ghc-9.0.2/tensorflow-core-ops-0.3.0.0/setup/setup.hs:32:1: error:
    Could not find module ‘Distribution.Utils.Path’
    Perhaps you meant
      Distribution.Utils.IOData (from Cabal-3.4.1.0)
      Distribution.Utils.MD5 (from Cabal-3.4.1.0)
      Distribution.Utils.Base62
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
32 | import Distribution.Utils.Path (unsafeMakeSymbolicPath)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Checking hackage, the earliest exposure of the Distribution.Utils.Path module is in version 3.6 (https://hackage.haskell.org/package/Cabal-3.6.0.0) instead of 3.1 as guarded against.

fkm3 commented 1 year ago

thanks