Cabal revisions of ghc-exactprint-0.3
Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.
revision 1
-name: ghc-exactprint-version: 0.3-synopsis: ExactPrint for GHC-description: Using the API Annotations available from GHC 7.10.2, this- library provides a means to round trip any code that can- be compiled by GHC, currently excluding lhs files.- .- It does this with a phased approach- .- * Delta - converts GHC API Annotations into relative- offsets, indexed by SrcSpan- .- * Transform - functions to facilitate changes to- the AST, adjusting the annotations generated in the- Delta phase to suit the changes.- .- * Print - converts an AST and its annotations to- properly formatted source text.- .- .- Note: requires GHC 7.10.2 or later--license: BSD3-license-file: LICENSE-author: Alan Zimmerman, Matthew Pickering-maintainer: alan.zimm@gmail.com-category: Development-build-type: Simple-extra-source-files: ChangeLog- tests/examples/*.hs- tests/examples/*.hs.expected- tests/examples/*.hs-boot-cabal-version: >=1.10--source-repository head- type: git- location: https://github.com/alanz/ghc-exactprint.git--Flag roundtrip {- Description: Build roundtripping executables- Default: False-}---library- exposed-modules: Language.Haskell.GHC.ExactPrint- , Language.Haskell.GHC.ExactPrint.Annotate- , Language.Haskell.GHC.ExactPrint.Delta- , Language.Haskell.GHC.ExactPrint.GhcInterim- , Language.Haskell.GHC.ExactPrint.Lookup- , Language.Haskell.GHC.ExactPrint.Preprocess- , Language.Haskell.GHC.ExactPrint.Print- , Language.Haskell.GHC.ExactPrint.Transform- , Language.Haskell.GHC.ExactPrint.Types- , Language.Haskell.GHC.ExactPrint.Utils- , Language.Haskell.GHC.ExactPrint.Parsers--- -- other-modules:- -- other-extensions:- GHC-Options: -Wall- build-depends: base >=4.7 && <4.9- , containers- , directory- , filepath- , ghc- , ghc-paths- , mtl- , syb- , free- hs-source-dirs: src- default-language: Haskell2010- if impl (ghc < 7.10.2)- buildable: False--Test-Suite test- type: exitcode-stdio-1.0- hs-source-dirs: tests- main-is: Test.hs- other-modules: Test.Common, Test.Consistency, Test.Transform- GHC-Options: -threaded- Default-language: Haskell2010- if impl (ghc < 7.10.2)- buildable: False- Build-depends: HUnit- , base < 5- , containers- , directory- , filepath- , ghc- , ghc-exactprint- , ghc-paths- , mtl- , random- , syb- , silently- , filemanip--executable roundtrip- main-is: Roundtrip.hs- hs-source-dirs: tests- other-modules: Test.Common- default-language: Haskell2010- if impl (ghc >= 7.10.2) && flag (roundtrip)- build-depends:- HUnit- , base- , containers- , directory- , filemanip- , filepath- , ghc- , ghc-exactprint- , ghc-paths- , syb- , temporary- buildable: True- else- buildable: False- ghc-options:- -threaded--executable static- main-is: Static.hs- hs-source-dirs: tests- default-language: Haskell2010- if flag (roundtrip)- build-depends: base- , directory- , filepath- , Diff- buildable: True- else- buildable: False--+name: ghc-exactprint +version: 0.3 +x-revision: 1 +synopsis: ExactPrint for GHC +description: Using the API Annotations available from GHC 7.10.2, this + library provides a means to round trip any code that can + be compiled by GHC, currently excluding lhs files. + . + It does this with a phased approach + . + * Delta - converts GHC API Annotations into relative + offsets, indexed by SrcSpan + . + * Transform - functions to facilitate changes to + the AST, adjusting the annotations generated in the + Delta phase to suit the changes. + . + * Print - converts an AST and its annotations to + properly formatted source text. + . + . + Note: requires GHC 7.10.2 or later + +license: BSD3 +license-file: LICENSE +author: Alan Zimmerman, Matthew Pickering +maintainer: alan.zimm@gmail.com +category: Development +build-type: Simple +extra-source-files: ChangeLog + tests/examples/*.hs + tests/examples/*.hs.expected + tests/examples/*.hs-boot +cabal-version: >=1.10 + +source-repository head + type: git + location: https://github.com/alanz/ghc-exactprint.git + +Flag roundtrip { + Description: Build roundtripping executables + Default: False +} + + +library + exposed-modules: Language.Haskell.GHC.ExactPrint + , Language.Haskell.GHC.ExactPrint.Annotate + , Language.Haskell.GHC.ExactPrint.Delta + , Language.Haskell.GHC.ExactPrint.GhcInterim + , Language.Haskell.GHC.ExactPrint.Lookup + , Language.Haskell.GHC.ExactPrint.Preprocess + , Language.Haskell.GHC.ExactPrint.Print + , Language.Haskell.GHC.ExactPrint.Transform + , Language.Haskell.GHC.ExactPrint.Types + , Language.Haskell.GHC.ExactPrint.Utils + , Language.Haskell.GHC.ExactPrint.Parsers + + + -- other-modules: + -- other-extensions: + GHC-Options: -Wall + build-depends: base >=4.8 && <4.9 + , containers + , directory + , filepath + , ghc + , ghc-paths + , mtl + , syb + , free + hs-source-dirs: src + default-language: Haskell2010 + if impl (ghc < 7.10.2) + buildable: False + +Test-Suite test + type: exitcode-stdio-1.0 + hs-source-dirs: tests + main-is: Test.hs + other-modules: Test.Common, Test.Consistency, Test.Transform + GHC-Options: -threaded + Default-language: Haskell2010 + if impl (ghc < 7.10.2) + buildable: False + Build-depends: HUnit + , base < 5 + , containers + , directory + , filepath + , ghc + , ghc-exactprint + , ghc-paths + , mtl + , random + , syb + , silently + , filemanip + +executable roundtrip + main-is: Roundtrip.hs + hs-source-dirs: tests + other-modules: Test.Common + default-language: Haskell2010 + if impl (ghc >= 7.10.2) && flag (roundtrip) + build-depends: + HUnit + , base + , containers + , directory + , filemanip + , filepath + , ghc + , ghc-exactprint + , ghc-paths + , syb + , temporary + buildable: True + else + buildable: False + ghc-options: + -threaded + +executable static + main-is: Static.hs + hs-source-dirs: tests + default-language: Haskell2010 + if flag (roundtrip) + build-depends: base + , directory + , filepath + , Diff + buildable: True + else + buildable: False + +