diff --git a/stack.yaml b/stack.yaml index 3fd10b3..42229dd 100644 --- a/stack.yaml +++ b/stack.yaml @@ -16,11 +16,11 @@ packages: extra-deps: - snappy-framing-0.1.1 - snappy-0.2.0.2 -- proto-lens-protobuf-types-0.2.1.0 -# TODO: Remove these once the new versions are in lts-8. -- proto-lens-0.2.1.0 -- proto-lens-descriptors-0.2.1.0 -- proto-lens-protoc-0.2.1.0 +# TODO: Remove these once the new versions are in lts-9. +- proto-lens-protobuf-types-0.2.2.0 +- proto-lens-0.2.2.0 +- proto-lens-descriptors-0.2.2.0 +- proto-lens-protoc-0.2.2.1 # For Mac OS X, whose linker doesn't use this path by default # unless you run `xcode-select --install`. diff --git a/tensorflow-proto/tensorflow-proto.cabal b/tensorflow-proto/tensorflow-proto.cabal index ed54dd5..ad6b381 100644 --- a/tensorflow-proto/tensorflow-proto.cabal +++ b/tensorflow-proto/tensorflow-proto.cabal @@ -56,8 +56,8 @@ library , Proto.Tensorflow.Core.Util.MemmappedFileSystem , Proto.Tensorflow.Core.Util.SavedTensorSlice , Proto.Tensorflow.Core.Util.TestLog - build-depends: proto-lens == 0.2.* - , proto-lens-protoc >= 0.2.1 && < 0.3 + build-depends: proto-lens >= 0.2.2 && < 0.3 + , proto-lens-protoc >= 0.2.2.1 && < 0.3 , proto-lens-protobuf-types == 0.2.* , base >= 4.7 && < 5 default-language: Haskell2010 diff --git a/tensorflow/src/TensorFlow/Build.hs b/tensorflow/src/TensorFlow/Build.hs index 7f549a3..cdfcfcd 100644 --- a/tensorflow/src/TensorFlow/Build.hs +++ b/tensorflow/src/TensorFlow/Build.hs @@ -91,7 +91,6 @@ import Proto.Tensorflow.Core.Framework.NodeDef , op ) -import TensorFlow.Orphans () import TensorFlow.Output newtype Unique = Unique Int diff --git a/tensorflow/src/TensorFlow/Orphans.hs b/tensorflow/src/TensorFlow/Orphans.hs deleted file mode 100644 index cf185e2..0000000 --- a/tensorflow/src/TensorFlow/Orphans.hs +++ /dev/null @@ -1,46 +0,0 @@ --- Copyright 2016 TensorFlow authors. --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. - - -{-# LANGUAGE StandaloneDeriving #-} -{-# OPTIONS_GHC -fno-warn-orphans #-} --- Orphan instances for certain proto messages/enums, used internally. --- TODO(judahjacobson): consider making proto-lens generate some or all of --- these automatically; or, alternately, make new Haskell datatypes. -module TensorFlow.Orphans() where - -import Proto.Tensorflow.Core.Framework.AttrValue - ( AttrValue(..) - , AttrValue'ListValue(..) - , NameAttrList(..) - ) -import Proto.Tensorflow.Core.Framework.NodeDef - ( NodeDef(..)) -import Proto.Tensorflow.Core.Framework.ResourceHandle - ( ResourceHandle(..)) -import Proto.Tensorflow.Core.Framework.Tensor - (TensorProto(..)) -import Proto.Tensorflow.Core.Framework.TensorShape - (TensorShapeProto(..), TensorShapeProto'Dim(..)) -import Proto.Tensorflow.Core.Framework.Types (DataType(..)) - -deriving instance Ord AttrValue -deriving instance Ord AttrValue'ListValue -deriving instance Ord DataType -deriving instance Ord NameAttrList -deriving instance Ord NodeDef -deriving instance Ord ResourceHandle -deriving instance Ord TensorProto -deriving instance Ord TensorShapeProto -deriving instance Ord TensorShapeProto'Dim diff --git a/tensorflow/src/TensorFlow/Output.hs b/tensorflow/src/TensorFlow/Output.hs index 2114dbc..2ebb232 100644 --- a/tensorflow/src/TensorFlow/Output.hs +++ b/tensorflow/src/TensorFlow/Output.hs @@ -44,7 +44,6 @@ import Lens.Family2.Unchecked (lens) import Proto.Tensorflow.Core.Framework.AttrValue (AttrValue(..)) import Data.Default (def) import TensorFlow.Types (Attribute, attrLens) -import TensorFlow.Orphans () -- | A type of graph node which has no outputs. These nodes are -- valuable for causing side effects when they are run. diff --git a/tensorflow/tensorflow.cabal b/tensorflow/tensorflow.cabal index 8b3e3b2..bb6b5ad 100644 --- a/tensorflow/tensorflow.cabal +++ b/tensorflow/tensorflow.cabal @@ -35,11 +35,8 @@ library , TensorFlow.Tensor , TensorFlow.Types other-modules: TensorFlow.Internal.Raw - , TensorFlow.Orphans build-tools: c2hs build-depends: proto-lens == 0.2.* - -- Used by the custom Setup script (for the test-suite). - , proto-lens-protoc == 0.2.* , tensorflow-proto == 0.1.* , base >= 4.7 && < 5 , async