th-utilities 0.2.0.1 → 0.2.1.0
raw patch · 4 files changed
+77/−54 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ TH.Utilities: dumpSplices :: DecsQ -> DecsQ
Files
- ChangeLog.md +6/−0
- src/TH/Derive.hs +1/−1
- src/TH/Utilities.hs +14/−0
- th-utilities.cabal +56/−53
ChangeLog.md view
@@ -1,5 +1,11 @@ # ChangeLog +## 0.2.0.1++* Fixes build on 7.8++* Fixes warnings+ ## 0.2.0.0 * Adds TH.ReifySimple, which supports reifying most of the information TH users
src/TH/Derive.hs view
@@ -10,7 +10,7 @@ -- typeclasses beyond GHC's ability to generate instances in @deriving@ -- clauses. ----- For exmaple, "TH.Derive.Storable" defines a 'Deriver' for 'Storable'.+-- For example, "TH.Derive.Storable" defines a 'Deriver' for 'Storable'. -- This allows us to use 'derive' to generate an instance for Storable: -- -- @
src/TH/Utilities.hs view
@@ -155,3 +155,17 @@ instance Lift ExpLifter where lift (ExpLifter e) = e++-- | Print splices generated by a TH splice (the printing will happen+-- during compilation, as a GHC warning). Useful for debugging.+--+-- For instance, you can dump splices generated with 'makeLenses' by+-- replacing a top-level invocation of 'makeLenses' in your code with:+--+-- @dumpSplices $ makeLenses ''Foo@+dumpSplices :: DecsQ -> DecsQ+dumpSplices x = do+ ds <- x+ let code = lines (pprint ds)+ reportWarning ("\n" ++ unlines (map (" " ++) code))+ return ds
th-utilities.cabal view
@@ -1,75 +1,78 @@--- This file has been generated from package.yaml by hpack version 0.14.0.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.31.1. -- -- see: https://github.com/sol/hpack--name: th-utilities-version: 0.2.0.1-synopsis: Collection of useful functions for use with Template Haskell-homepage: https://github.com/fpco/th-utilities#readme-bug-reports: https://github.com/fpco/th-utilities/issues-license: MIT-license-file: LICENSE-maintainer: Michael Sloan <sloan@fpcomplete.com>-copyright: 2016 FP Complete-category: Template Haskell-build-type: Simple-cabal-version: >= 1.10+--+-- hash: f65b38d225125ec3f0a4ec974c8bcae0ae5358894abd8c118aa1a6b3c9b457e7 +name: th-utilities+version: 0.2.1.0+synopsis: Collection of useful functions for use with Template Haskell+category: Template Haskell+homepage: https://github.com/fpco/th-utilities#readme+bug-reports: https://github.com/fpco/th-utilities/issues+maintainer: Michael Sloan <mgsloan@gmail.com>+copyright: 2016 FP Complete+license: MIT+license-file: LICENSE+build-type: Simple extra-source-files:- ChangeLog.md- README.md+ README.md+ ChangeLog.md source-repository head type: git location: https://github.com/fpco/th-utilities library+ exposed-modules:+ TH.Derive+ TH.Derive.Storable+ TH.ReifySimple+ TH.RelativePaths+ TH.Utilities+ other-modules:+ TH.Derive.Internal hs-source-dirs:- src+ src ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates build-depends:- base >= 4.7 && < 5,- bytestring,- containers,- directory,- filepath,- primitive,- syb,- template-haskell >= 2.7,- text,- th-orphans- exposed-modules:- TH.Derive- TH.Derive.Storable- TH.ReifySimple- TH.RelativePaths- TH.Utilities- other-modules:- TH.Derive.Internal+ base >=4.7 && <5+ , bytestring+ , containers+ , directory+ , filepath+ , primitive+ , syb+ , template-haskell >=2.7+ , text+ , th-orphans default-language: Haskell2010 test-suite test type: exitcode-stdio-1.0 main-is: Main.hs+ other-modules:+ TH.Derive.StorableSpec+ TH.DeriveSpec+ TH.DeriveSpec.TH+ Paths_th_utilities hs-source-dirs:- test+ test ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates build-depends:- base >= 4.7 && < 5,- bytestring,- containers,- directory,- filepath,- primitive,- syb,- template-haskell >= 2.7,- text,- th-orphans,- th-utilities,- hspec,- vector- other-modules:- TH.Derive.StorableSpec- TH.DeriveSpec- TH.DeriveSpec.TH+ base >=4.7 && <5+ , bytestring+ , containers+ , directory+ , filepath+ , hspec+ , primitive+ , syb+ , template-haskell >=2.7+ , text+ , th-orphans+ , th-utilities+ , vector default-language: Haskell2010