├── .github └── workflows │ └── haskell-ci.yml ├── .gitignore ├── .travis.yml ├── ChangeLog.md ├── LICENSE ├── README.md ├── Setup.hs ├── appveyor.yml ├── benchmark ├── Main.hs ├── TestCases.hs └── TestCasesOptimized.hs ├── derive-storable-plugin.cabal ├── src └── Foreign │ └── Storable │ └── Generic │ ├── Plugin.hs │ └── Plugin │ ├── Internal.hs │ └── Internal │ ├── Compile.hs │ ├── Error.hs │ ├── GroupTypes.hs │ ├── Helpers.hs │ ├── Predicates.hs │ └── Types.hs └── test ├── Basic ├── GenTestCases.hs ├── MemoryCSpec.hs ├── TestCases ├── TestCases.hs └── cbits │ └── TestCases.c └── ids ├── Concrete ├── Instances.hs ├── Main.hs └── Types.hs ├── Handwritten ├── Instances.hs ├── Main.hs └── Types.hs ├── NewType ├── Instances.hs ├── Main.hs └── Types.hs ├── NewTypeParam ├── Instances.hs ├── Main.hs ├── Types.hs └── Usage.hs ├── Parametrised ├── Instances.hs ├── Main.hs ├── Types.hs └── Usage.hs ├── ParametrisedSpec ├── Instances.hs ├── Main.hs ├── Types.hs └── Usage.hs ├── TypeSynonym ├── Instances.hs ├── Main.hs └── Types.hs └── TypeSynonymParam ├── Instances.hs ├── Main.hs ├── Types.hs └── Usage.hs /.github/workflows/haskell-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/.github/workflows/haskell-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/.travis.yml -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/ChangeLog.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/README.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/appveyor.yml -------------------------------------------------------------------------------- /benchmark/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/benchmark/Main.hs -------------------------------------------------------------------------------- /benchmark/TestCases.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/benchmark/TestCases.hs -------------------------------------------------------------------------------- /benchmark/TestCasesOptimized.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/benchmark/TestCasesOptimized.hs -------------------------------------------------------------------------------- /derive-storable-plugin.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/derive-storable-plugin.cabal -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/Compile.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/Compile.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/Error.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/Error.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/GroupTypes.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/GroupTypes.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/Helpers.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/Helpers.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/Predicates.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/Predicates.hs -------------------------------------------------------------------------------- /src/Foreign/Storable/Generic/Plugin/Internal/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/src/Foreign/Storable/Generic/Plugin/Internal/Types.hs -------------------------------------------------------------------------------- /test/Basic/GenTestCases.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/Basic/GenTestCases.hs -------------------------------------------------------------------------------- /test/Basic/MemoryCSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/Basic/MemoryCSpec.hs -------------------------------------------------------------------------------- /test/Basic/TestCases: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/Basic/TestCases -------------------------------------------------------------------------------- /test/Basic/TestCases.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/Basic/TestCases.hs -------------------------------------------------------------------------------- /test/Basic/cbits/TestCases.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/Basic/cbits/TestCases.c -------------------------------------------------------------------------------- /test/ids/Concrete/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Concrete/Instances.hs -------------------------------------------------------------------------------- /test/ids/Concrete/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Concrete/Main.hs -------------------------------------------------------------------------------- /test/ids/Concrete/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Concrete/Types.hs -------------------------------------------------------------------------------- /test/ids/Handwritten/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Handwritten/Instances.hs -------------------------------------------------------------------------------- /test/ids/Handwritten/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Handwritten/Main.hs -------------------------------------------------------------------------------- /test/ids/Handwritten/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Handwritten/Types.hs -------------------------------------------------------------------------------- /test/ids/NewType/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewType/Instances.hs -------------------------------------------------------------------------------- /test/ids/NewType/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewType/Main.hs -------------------------------------------------------------------------------- /test/ids/NewType/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewType/Types.hs -------------------------------------------------------------------------------- /test/ids/NewTypeParam/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewTypeParam/Instances.hs -------------------------------------------------------------------------------- /test/ids/NewTypeParam/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewTypeParam/Main.hs -------------------------------------------------------------------------------- /test/ids/NewTypeParam/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewTypeParam/Types.hs -------------------------------------------------------------------------------- /test/ids/NewTypeParam/Usage.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/NewTypeParam/Usage.hs -------------------------------------------------------------------------------- /test/ids/Parametrised/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Parametrised/Instances.hs -------------------------------------------------------------------------------- /test/ids/Parametrised/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Parametrised/Main.hs -------------------------------------------------------------------------------- /test/ids/Parametrised/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Parametrised/Types.hs -------------------------------------------------------------------------------- /test/ids/Parametrised/Usage.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/Parametrised/Usage.hs -------------------------------------------------------------------------------- /test/ids/ParametrisedSpec/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/ParametrisedSpec/Instances.hs -------------------------------------------------------------------------------- /test/ids/ParametrisedSpec/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/ParametrisedSpec/Main.hs -------------------------------------------------------------------------------- /test/ids/ParametrisedSpec/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/ParametrisedSpec/Types.hs -------------------------------------------------------------------------------- /test/ids/ParametrisedSpec/Usage.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/ParametrisedSpec/Usage.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonym/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonym/Instances.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonym/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonym/Main.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonym/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonym/Types.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonymParam/Instances.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonymParam/Instances.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonymParam/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonymParam/Main.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonymParam/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonymParam/Types.hs -------------------------------------------------------------------------------- /test/ids/TypeSynonymParam/Usage.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkloczko/derive-storable-plugin/HEAD/test/ids/TypeSynonymParam/Usage.hs --------------------------------------------------------------------------------