language-c-quote 0.13.0.1 → 0.13.0.2
raw patch · 3 files changed
+38/−18 lines, 3 filesdep ~bytestringdep ~filepathPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: bytestring, filepath
API changes (from Hackage documentation)
Files
- LICENSE +1/−1
- Language/C/Quote/Base.hs +19/−8
- language-c-quote.cabal +18/−9
LICENSE view
@@ -48,7 +48,7 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Copyright (c) 2013-2017+Copyright (c) 2013-2024 Drexel University. Redistribution and use in source and binary forms, with or without
Language/C/Quote/Base.hs view
@@ -224,19 +224,30 @@ qqDeclSpecE :: C.DeclSpec -> Maybe (Q Exp) qqDeclSpecE (C.AntiDeclSpec v _) = Just $ antiVarE v qqDeclSpecE (C.AntiTypeDeclSpec extraStorage extraTypeQuals v _) =- Just [|let C.Type (C.DeclSpec storage typeQuals typeSpec loc) _ _- = $(antiVarE v)- in- C.DeclSpec (storage ++ $(dataToExpQ qqExp extraStorage))- (typeQuals ++ $(dataToExpQ qqExp extraTypeQuals))- typeSpec- loc+ Just [|+ case $(antiVarE v) of+ C.Type (C.DeclSpec storage typeQuals typeSpec loc) _ _ ->+ C.DeclSpec+ (storage ++ $(dataToExpQ qqExp extraStorage))+ (typeQuals ++ $(dataToExpQ qqExp extraTypeQuals))+ typeSpec+ loc++ x -> error+ $ "Impossible happened, expected C.Type (C.DeclSpec {}) but got "+ ++ show x |] qqDeclSpecE _ = Nothing qqDeclE :: C.Decl -> Maybe (Q Exp) qqDeclE (C.AntiTypeDecl v _) =- Just [|let C.Type _ decl _ = $(antiVarE v) in decl|]+ Just [|+ case $(antiVarE v) of+ C.Type _ decl _ -> decl+ x -> error+ $ "Impossible happened, expected C.Type but got "+ ++ show x+ |] qqDeclE _ = Nothing qqTypeQualE :: C.TypeQual -> Maybe (Q Exp)
language-c-quote.cabal view
@@ -1,12 +1,12 @@ name: language-c-quote-version: 0.13.0.1+version: 0.13.0.2 cabal-version: 2.0 license: BSD3 license-file: LICENSE copyright: (c) 2006-2011 Harvard University (c) 2011-2013 Geoffrey Mainland (c) 2013 Manuel M. T. Chakravarty- (c) 2013-2019 Drexel University+ (c) 2013-2024 Drexel University author: Geoffrey Mainland <mainland@drexel.edu> maintainer: Geoffrey Mainland <mainland@drexel.edu> stability: alpha@@ -14,9 +14,18 @@ bug-reports: https://github.com/mainland/language-c-quote/issues category: Language synopsis: C/CUDA/OpenCL/Objective-C quasiquoting library.-tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2,- GHC==8.2.2, GHC==8.4.3, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7,- GHC==9.0.2, GHC==9.2.7, GHC==9.4.4, GHC==9.6.1+tested-with: GHC==8.0.2,+ GHC==8.2.2,+ GHC==8.4.3,+ GHC==8.6.5,+ GHC==8.8.4,+ GHC==8.10.7,+ GHC==9.0.2,+ GHC==9.2.2,+ GHC==9.4.8,+ GHC==9.6.4,+ GHC==9.8.2,+ GHC==9.10.1 description: This package provides a general parser for the C language, including most GCC@@ -42,11 +51,11 @@ build-depends: array >= 0.2 && < 0.6, base >= 4.5 && < 5,- bytestring >= 0.9 && < 0.12,- containers >= 0.4 && < 0.7,+ bytestring >= 0.9 && < 0.13,+ containers >= 0.4 && < 0.8, exception-mtl >= 0.3 && < 0.5, exception-transformers >= 0.3 && < 0.5,- filepath >= 1.2 && < 1.5,+ filepath >= 1.2 && < 1.6, mainland-pretty >= 0.7 && < 0.8, mtl >= 2.0 && < 3, srcloc >= 0.4 && < 0.7,@@ -117,7 +126,7 @@ build-depends: HUnit >= 1.2 && < 1.7, base >= 4 && < 5,- bytestring >= 0.9 && < 0.12,+ bytestring >= 0.9 && < 0.13, language-c-quote, mainland-pretty >= 0.7 && < 0.8, srcloc >= 0.4 && < 0.7,