From 2dc23672fd619d9e337648b1f64ef1d6119b9c09 Mon Sep 17 00:00:00 2001 From: Providence Salumu Date: Thu, 25 Feb 2021 06:37:34 -0500 Subject: [PATCH] #398, add files --- .../compress/cbits/include/issue-398/dawa79.H | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/playground/haskell/compress/cbits/include/issue-398/dawa79.H b/playground/haskell/compress/cbits/include/issue-398/dawa79.H index 2ad15bda..8989131b 100644 --- a/playground/haskell/compress/cbits/include/issue-398/dawa79.H +++ b/playground/haskell/compress/cbits/include/issue-398/dawa79.H @@ -15,7 +15,7 @@ struct TestEnum { }; namespace hobbes { -template struct liftTestEnum { +struct liftTestEnum { static MonoTypePtr type(typedb &) { Variant::Members vms; auto i = 0; @@ -24,11 +24,14 @@ template struct liftTestEnum { return MonoTypePtr(Variant::make(vms)); } }; -template struct lift : public liftTestEnum {}; -template struct lift : public liftTestEnum {}; +template +struct lift : public liftTestEnum {}; +template +struct lift : public liftTestEnum {}; } // namespace hobbes -DEFINE_STRUCT(FixarrayS, (TestEnum, value), (const hobbes::array *, body)); +DEFINE_STRUCT(FixarrayS, (TestEnum, value), + (const hobbes::array *, body)); void run(const std::string &fname, bool compressed) { hobbes::cc c; @@ -37,9 +40,9 @@ void run(const std::string &fname, bool compressed) { v1.value._value = TestEnum::Option; hobbes::writer writer{fname}; - hobbes::series ss1(&c, &writer, "udata", 10000, - compressed ? hobbes::StoredSeries::Compressed - : hobbes::StoredSeries::Raw); + hobbes::series ss1(&c, &writer, "udata", 10000, + compressed ? hobbes::StoredSeries::Compressed + : hobbes::StoredSeries::Raw); ss1(v1); std::cout << "------------testing -----------------" << std::endl; // c.define("f", "inputFile :: (LoadFile "