packages feed

hoppy-std 0.7.0 → 0.7.1

raw patch · 20 files changed

+216/−30 lines, 20 filessetup-changedPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Setup.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.
hoppy-std.cabal view
@@ -1,12 +1,12 @@ name: hoppy-std-version: 0.7.0+version: 0.7.1 synopsis: C++ FFI generator - Standard library bindings homepage: http://khumba.net/projects/hoppy license: Apache-2.0 license-file: LICENSE author: Bryan Gardiner <bog@khumba.net> maintainer: Bryan Gardiner <bog@khumba.net>-copyright: Copyright 2015-2019 Bryan Gardiner+copyright: Copyright 2015-2020 Bryan Gardiner category: Foreign build-type: Simple cabal-version: >=1.10
include/hoppy/std/iterator.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include/hoppy/std/map.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include/hoppy/std/set.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include/hoppy/std/unordered_map.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include/hoppy/std/unordered_set.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include/hoppy/std/utility.hpp view
@@ -3,7 +3,7 @@  // This file is part of Hoppy. //-// Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+// Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
src/Foreign/Hoppy/Generator/Std.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.
src/Foreign/Hoppy/Generator/Std/Internal.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.
src/Foreign/Hoppy/Generator/Std/Iterator.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.
src/Foreign/Hoppy/Generator/Std/List.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,26 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Operator (OpEq),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImport1,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MConst),@@ -53,6 +72,10 @@   mkMethod',   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Comparable, Copyable, Equatable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Iterator
src/Foreign/Hoppy/Generator/Std/Map.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,27 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Operator (OpArray, OpEq),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImports,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2,+  ident2T,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MConst, MNormal),@@ -53,6 +73,10 @@   mkMethod',   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Internal (includeHelper)
src/Foreign/Hoppy/Generator/Std/Pair.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -29,7 +29,19 @@ #if !MIN_VERSION_base(4,8,0) import Data.Monoid (mconcat) #endif-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Export (Export),+  Purity (Nonpure),+  Reqs,+  Type,+  addReqs,+  ident1T,+  ident2,+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MConst, MNormal),@@ -37,6 +49,10 @@   makeFnMethod,   mkCtor,   mkMethod,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std.Internal (includeHelper) import Foreign.Hoppy.Generator.Types
src/Foreign/Hoppy/Generator/Std/Set.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,26 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Operator (OpEq),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImport1,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MNormal),@@ -54,6 +73,10 @@   toHsCastMethodName,   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Comparable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Internal (includeHelper)
src/Foreign/Hoppy/Generator/Std/String.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -23,7 +23,18 @@ import Data.Monoid (mconcat) #endif import Foreign.Hoppy.Generator.Language.Haskell (addExport, addImports, indent, sayLn)-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  addAddendumHaskell,+  addReqIncludes,+  hsImport1,+  hsImportForForeignC,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1,+  includeStd,+  np,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   ClassHaskellConversion (..),@@ -33,6 +44,10 @@   mkConstMethod,   mkConstMethod',   mkMethod',+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Comparable, Copyable, Equatable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Types import Language.Haskell.Syntax (
src/Foreign/Hoppy/Generator/Std/UnorderedMap.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,27 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Operator (OpArray, OpEq),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImports,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2T,+  ident2,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MConst, MNormal),@@ -53,6 +73,10 @@   mkMethod',   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Internal (includeHelper)
src/Foreign/Hoppy/Generator/Std/UnorderedSet.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,26 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Operator (OpEq),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImport1,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MNormal),@@ -54,6 +73,10 @@   toHsCastMethodName,   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Internal (includeHelper)
src/Foreign/Hoppy/Generator/Std/Vector.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -40,7 +40,26 @@   sayLn,   saysLn,   )-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  Constness (Const, Nonconst),+  Export (Export),+  Purity (Nonpure),+  Reqs,+  Type,+  addAddendumHaskell,+  addReqs,+  hsImport1,+  hsImports,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1T,+  ident2,+  identT',+  includeStd,+  np,+  reqInclude,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   MethodApplicability (MConst),@@ -53,6 +72,10 @@   mkMethod',   toHsDataTypeName,   toHsClassEntityName,+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Copyable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Std (ValueConversion (ConvertPtr, ConvertValue)) import Foreign.Hoppy.Generator.Std.Iterator
src/Foreign/Hoppy/Generator/Std/Wstring.hs view
@@ -1,6 +1,6 @@ -- This file is part of Hoppy. ----- Copyright 2015-2019 Bryan Gardiner <bog@khumba.net>+-- Copyright 2015-2020 Bryan Gardiner <bog@khumba.net> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License.@@ -23,7 +23,18 @@ import Data.Monoid (mconcat) #endif import Foreign.Hoppy.Generator.Language.Haskell (addExport, addImports, indent, sayLn)-import Foreign.Hoppy.Generator.Spec+import Foreign.Hoppy.Generator.Spec (+  addAddendumHaskell,+  addReqIncludes,+  hsImport1,+  hsImportForForeignC,+  hsImportForPrelude,+  hsImportForRuntime,+  ident1,+  includeStd,+  np,+  toExtName,+  ) import Foreign.Hoppy.Generator.Spec.Class (   Class,   ClassHaskellConversion (..),@@ -33,6 +44,10 @@   mkConstMethod,   mkConstMethod',   mkMethod',+  )+import Foreign.Hoppy.Generator.Spec.ClassFeature (+  ClassFeature (Assignable, Comparable, Copyable, Equatable),+  classAddFeatures,   ) import Foreign.Hoppy.Generator.Types import Language.Haskell.Syntax (