1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 03:19:44 +01:00

Unbreak build with Cabal >= 2.4. (#256)

Remove sDistHook, add autogen-modules.
This commit is contained in:
Mike Sperber 2020-04-12 21:28:56 +02:00 committed by GitHub
parent f07c7f237a
commit 739f6618f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -50,11 +50,6 @@ generatingOpsWrappers = hooks
, haddockHook = \p l h f -> generateSources l >> haddockHook hooks p l h f , haddockHook = \p l h f -> generateSources l >> haddockHook hooks p l h f
, replHook = \p l h f args -> generateSources l , replHook = \p l h f args -> generateSources l
>> replHook hooks p l h f args >> replHook hooks p l h f args
, sDistHook = \p maybe_l h f -> case maybe_l of
Nothing -> error "Can't run sdist; run 'cabal configure first."
Just l -> do
generateSources l
sDistHook hooks (fudgePackageDesc l p) maybe_l h f
} }
where where
flagsBuilder dir = OpGenFlags flagsBuilder dir = OpGenFlags

View file

@ -10,10 +10,11 @@ maintainer: tensorflow-haskell@googlegroups.com
copyright: Google Inc. copyright: Google Inc.
category: Machine Learning category: Machine Learning
build-type: Custom build-type: Custom
cabal-version: >=1.24 cabal-version: >=2.0
library library
exposed-modules: TensorFlow.GenOps.Core exposed-modules: TensorFlow.GenOps.Core
autogen-modules: TensorFlow.GenOps.Core
build-depends: bytestring build-depends: bytestring
, proto-lens >= 0.4.0 && < 0.6.0 , proto-lens >= 0.4.0 && < 0.6.0
, tensorflow == 0.2.* , tensorflow == 0.2.*