forked from tensorflow/haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to lts-8.13, added custom-setup. (tensorflow#106)
* Switched to lts-8.13, added custom-setup. Our packages no longer elicit complaints like this: Package tensorflow-foo uses a custom Cabal build, but does not use a custom-setup stanza. * Removed some extra-deps and explicit-setup-deps * Removed provisions for different versions of stack lts. We are now solidly in the 8-only territory.
- Loading branch information
1 parent
ff5f1cc
commit 1d45e33
Showing
6 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ MAINTAINER TensorFlow authors <[email protected]> | |
ADD . /tfhs | ||
WORKDIR /tfhs | ||
|
||
ARG STACK_RESOLVER | ||
|
||
RUN \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442 && \ | ||
echo 'deb http://download.fpcomplete.com/ubuntu trusty main'| tee /etc/apt/sources.list.d/fpco.list && \ | ||
|
@@ -33,5 +31,5 @@ RUN \ | |
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.0.0.tar.gz && \ | ||
tar zxf libtensorflow-cpu-linux-x86_64-1.0.0.tar.gz -C /usr/local && \ | ||
ldconfig && \ | ||
stack setup --resolver=${STACK_RESOLVER} && \ | ||
stack test --resolver=${STACK_RESOLVER} --only-dependencies | ||
stack setup && \ | ||
stack test --only-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,20 @@ maintainer: [email protected] | |
copyright: Google Inc. | ||
category: Machine Learning | ||
build-type: Custom | ||
cabal-version: >=1.22 | ||
cabal-version: >=1.24 | ||
|
||
library | ||
exposed-modules: TensorFlow.GenOps.Core | ||
build-depends: Cabal >= 1.22 && < 1.25 | ||
build-depends: bytestring | ||
, proto-lens == 0.2.* | ||
, tensorflow == 0.1.* | ||
, base >= 4.7 && < 5 | ||
, lens-family | ||
, text | ||
default-language: Haskell2010 | ||
|
||
custom-setup | ||
setup-depends: Cabal | ||
, bytestring | ||
, directory | ||
, proto-lens == 0.2.* | ||
|
@@ -22,9 +31,7 @@ library | |
, base >= 4.7 && < 5 | ||
, filepath | ||
, mainland-pretty | ||
, lens-family | ||
, text | ||
default-language: Haskell2010 | ||
|
||
source-repository head | ||
type: git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ maintainer: [email protected] | |
copyright: Google Inc. | ||
category: Machine Learning | ||
build-type: Custom | ||
cabal-version: >=1.22 | ||
cabal-version: >=1.24 | ||
-- These files are downloaded automatically by Setup.hs. If the | ||
-- automatic download fails, follow the instructions in error messages | ||
-- displayed by Setup.hs. | ||
|
@@ -20,16 +20,19 @@ library | |
hs-source-dirs: src | ||
exposed-modules: TensorFlow.Examples.MNIST.InputData | ||
other-modules: Paths_tensorflow_mnist_input_data | ||
build-depends: Cabal | ||
, HTTP | ||
, base >= 4.7 && < 5 | ||
, bytestring | ||
, cryptonite | ||
, directory | ||
, filepath | ||
, network-uri | ||
build-depends: base >= 4.7 && < 5 | ||
default-language: Haskell2010 | ||
|
||
custom-setup | ||
setup-depends: Cabal | ||
, HTTP | ||
, base >= 4.7 && < 5 | ||
, bytestring | ||
, cryptonite | ||
, directory | ||
, filepath | ||
, network-uri | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/tensorflow/haskell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ maintainer: [email protected] | |
copyright: Google Inc. | ||
category: Machine Learning | ||
build-type: Custom | ||
cabal-version: >=1.22 | ||
cabal-version: >=1.24 | ||
extra-source-files: ../third_party/tensorflow/tensorflow/core/framework/*.proto | ||
, ../third_party/tensorflow/tensorflow/core/protobuf/config.proto | ||
, ../third_party/tensorflow/tensorflow/core/protobuf/debug.proto | ||
|
@@ -40,6 +40,10 @@ library | |
default-language: Haskell2010 | ||
include-dirs: . | ||
|
||
custom-setup | ||
setup-depends: Cabal | ||
, proto-lens-protoc == 0.2.* | ||
, base >= 4.7 && < 5 | ||
source-repository head | ||
type: git | ||
location: https://github.com/tensorflow/haskell |