codet-plugin 0.1 → 0.1.0.1
raw patch · 3 files changed
+30/−5 lines, 3 filesdep ~basedep ~filepathdep ~ghcPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, filepath, ghc
API changes (from Hackage documentation)
Files
codet-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: codet-plugin-version: 0.1+version: 0.1.0.1 license: BSD-3-Clause license-file: LICENSE author: Oleg Grenrus <oleg.grenrus@iki.fi>@@ -9,7 +9,9 @@ category: Data build-type: Simple extra-doc-files: CHANGELOG.md-tested-with: GHC ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.3 || ==9.8.1+tested-with:+ GHC ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1+ synopsis: GHC type-checker plugin for solving LiftT instances from codet @@ -32,9 +34,9 @@ exposed-modules: Language.Haskell.TH.CodeT.Plugin other-modules: Plugin.GHC build-depends:- , base ^>=4.15.1.0 || ^>=4.16.3.0 || ^>=4.17.2.1 || ^>=4.18.1.0 || ^>=4.19.0.0+ , base ^>=4.15.1.0 || ^>=4.16.3.0 || ^>=4.17.2.1 || ^>=4.18.1.0 || ^>=4.19.0.0 || ^>=4.20.0.0 , codet ^>=0.1- , ghc ^>=9.0.2 || ^>=9.2.3 || ^>=9.4.8 || ^>=9.6.3 || ^>=9.8.1+ , ghc ^>=9.0.2 || ^>=9.2.3 || ^>=9.4.8 || ^>=9.6.3 || ^>=9.8.1 || ^>=9.10.1 test-suite codet-plugin-tests import: language@@ -50,7 +52,7 @@ -- test dependencies build-depends: , directory ^>=1.3.6.2- , filepath ^>=1.4.2.1+ , filepath ^>=1.4.2.1 || ^>=1.5.2.0 , syb ^>=0.7.2.4 , tasty ^>=1.5 , tasty-golden ^>=2.3.5
+ tests/codet-plugin-tests-910.txt view
@@ -0,0 +1,22 @@+GHC.Types.Int+(ConT (Name (OccName "Int") (NameG (TcClsName) (PkgName "ghc-prim") (ModName "GHC.Types"))))+GHC.Internal.Data.Proxy.Proxy+(ConT (Name (OccName "Proxy") (NameG (TcClsName) (PkgName "ghc-internal") (ModName "GHC.Internal.Data.Proxy"))))+GHC.Internal.Maybe.Just+(ConT (Name (OccName "Just") (NameG (DataName) (PkgName "ghc-internal") (ModName "GHC.Internal.Maybe"))))+Main.Foo+(ConT (Name (OccName "Foo") (NameG (TcClsName) (PkgName "main") (ModName "Main"))))+Main.Foo+(ConT (Name (OccName "Foo") (NameG (DataName) (PkgName "main") (ModName "Main"))))+GHC.Types.List GHC.Types.Int+(AppT (ConT (Name (OccName "List") (NameG (TcClsName) (PkgName "ghc-prim") (ModName "GHC.Types")))) (ConT (Name (OccName "Int") (NameG (TcClsName) (PkgName "ghc-prim") (ModName "GHC.Types")))))+GHC.Internal.Show.Show+(ConT (Name (OccName "Show") (NameG (TcClsName) (PkgName "ghc-internal") (ModName "GHC.Internal.Show"))))+1+(LitT (NumTyLit (1)))+"string"+(LitT (StrTyLit "string"))+'c'+(LitT (CharTyLit ('c')))+GHC.Types.Int+(ConT (Name (OccName "Int") (NameG (TcClsName) (PkgName "ghc-prim") (ModName "GHC.Types"))))
tests/codet-plugin-tests.hs view
@@ -41,6 +41,7 @@ ghcVer :: Int -> Int ghcVer v+ | v >= 910 = 910 -- 9.10+ has stuff defined in GHC.Internal.* | v >= 906 = 906 -- 9.6+ prints GHC.Types.List, not [] | v >= 902 = 902 -- 9.2+ has Char kind | otherwise = 900