cabal-version: 3.0name: polytropos-pluginversion: 0.1.2.1synopsis: TcPlugin that emits literal evidence for Polytropos row classesdescription: A GHC typechecker plugin for <https://hackage.haskell.org/package/polytropos polytropos> that solves the evidence-class constraints ('Polytropos.Core.FieldIndex', 'Polytropos.Core.ConstructorIndex', 'Polytropos.Core.RowEq', 'Polytropos.Core.RowShow', 'Polytropos.Core.RowEqSum', 'Polytropos.Core.RowShowSum', 'Polytropos.Core.AllFields') by inspecting the row carried in a 'Polytropos.Core.RowRep''s type and emitting literal slot indices, tags, and dictionary vectors directly into GHC Core AST — eliminating inductive type-level search and pointer-chasing runtime overhead entirely. Uses the <https://hackage.haskell.org/package/ghc-tcplugin-api ghc-tcplugin-api> library for a streamlined interface to GHC's typechecker plugin API across compiler versions. Start at the front door module "Polytropos.Plugin" for complete usage instructions and worked examples. Enable in consuming packages via: @ghc-options: -fplugin=Polytropos.Plugin@.license: EUPL-1.2 OR Apache-2.0license-file: LICENSEauthor: Nadia Yvette Chambersmaintainer: nadia.yvette.chambers@ik.mecategory: Compiler Pluginhomepage: https://github.com/NadiaYvette/polytroposbug-reports: https://github.com/NadiaYvette/polytropos/issuesextra-doc-files: README.md , CHANGELOG.mdsource-repository head type: git location: https://github.com/NadiaYvette/polytropos subdir: packages/polytropos-plugincommon warnings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packageslibrary import: warnings exposed-modules: Polytropos.Plugin , Polytropos.Plugin.Source , Polytropos.Plugin.MergeMorph other-modules: Polytropos.Plugin.Compat hs-source-dirs: src default-language: GHC2021 build-depends: base >= 4.18 && < 4.24 , ghc >= 9.6 && < 10.2 , ghc-tcplugin-api >= 0.1 && < 0.21 , bytestring >= 0.11 && < 0.13 , containers >= 0.6 && < 0.9 , polytropos-core >= 0.1.2.0 && < 0.2test-suite polytropos-plugin-smoke import: warnings type: exitcode-stdio-1.0 hs-source-dirs: tests/smoke main-is: Main.hs default-language: GHC2021 build-depends: base >= 4.18 && < 4.24 , ghc-internal , polytropos-core >= 0.1.2.0 && < 0.2 , primitive , tasty >= 1.4 && < 1.6 , tasty-hunit >= 0.10 && < 0.11 , polytropos-plugin >= 0.1.2.0 && < 0.2 , process , directory , bytestring ghc-options: -fplugin=Polytropos.Plugin -- -dcore-lintbenchmark polytropos-bench import: warnings type: exitcode-stdio-1.0 hs-source-dirs: bench main-is: Main.hs default-language: GHC2021 ghc-options: -Wall -Wcompat -O2 -rtsopts "-with-rtsopts=-T" -fplugin=Polytropos.Plugin build-depends: base >= 4.18 && < 4.24 , containers >= 0.6 && < 0.9 , deepseq >= 1.4 && < 1.6 , text >= 2.0 && < 2.2 , polytropos-core >= 0.1.2.0 && < 0.2 , polytropos-plugin >= 0.1.2.0 && < 0.2 , tasty-bench >= 0.3.5 && < 0.6