From 1f6115da5a97474b9ed702f7b4145cf715d3de7f Mon Sep 17 00:00:00 2001 From: Judah Jacobson Date: Mon, 3 Apr 2017 20:25:55 -0700 Subject: [PATCH] Minor fix to codegen of INLINE pragma. (#85) --- tensorflow-opgen/src/TensorFlow/OpGen.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow-opgen/src/TensorFlow/OpGen.hs b/tensorflow-opgen/src/TensorFlow/OpGen.hs index 2a56c7d..ac1e02d 100644 --- a/tensorflow-opgen/src/TensorFlow/OpGen.hs +++ b/tensorflow-opgen/src/TensorFlow/OpGen.hs @@ -177,7 +177,7 @@ renderOp pOp = stack $ -- to stack calling "-dump-hi" which (unnecessarily) includes the -- inlining information, and is large for ops with many arguments. #if __GLASGOW_HASKELL__ < 800 - , "{-# NOINLINE " <> n <> "#-}" + , "{-# NOINLINE" <+> n <+> "#-}" #endif , n <+> "::" <+> hang 0 (typeSig empty pOp) , n <+> "=" <+> n <> "' id"