packages feed

hpp 0.3.0.0 → 0.3.1.0

raw patch · 3 files changed

+12/−7 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Hpp: infixl 9 ~>
+ Hpp.Streamer: infixl 9 ~>

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+# 0.3.1++Address a change wherein GHC 8 will pass `-include` arguments without a space between "-include" and the file to be included.+ # 0.3  Switch to a stream processing model.
hpp.cabal view
@@ -1,12 +1,12 @@ name:                hpp-version:             0.3.0.0+version:             0.3.1.0 synopsis:            A Haskell pre-processor  description: @hpp@ is a Haskell pre-processor that is also a              C89/C90-compatible pre-processor (with the addition of a              @--cpp@ flag). It is packaged as both a library and              an executable.-             +              .               To use as a Haskell preprocessor for resolving @#ifdef@@@ -30,7 +30,7 @@              line to the top of a Haskell source file that makes use              of the @CPP@ @LANGUAGE@ pragma.              .-             +              @              &#123;-\# OPTIONS_GHC -cpp -pgmPhpp -optP\-\-cpp \#-&#125;              @@@ -63,8 +63,8 @@                        Hpp.String,                        Hpp.Tokens,                        Hpp.Types-  build-depends:       base >=4.7 && <4.10, directory, time, filepath,-                       transformers+  build-depends:       base >=4.8 && <4.10, directory, time >=1.5, filepath,+                       transformers >=0.4   hs-source-dirs:      src   default-language:    Haskell2010   ghc-options: -Wall -fno-full-laziness@@ -73,7 +73,7 @@  executable hpp   main-is:             src/Main.hs-  build-depends:       hpp, base >=4.7 && <4.10, directory, time, filepath+  build-depends:       hpp, base >=4.8 && <4.10, directory, time >=1.5, filepath   hs-source-dirs:      .   default-language:    Haskell2010   ghc-options: -Wall
src/Hpp/CmdLine.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE RankNTypes #-} -- | A front-end to run Hpp with textual arguments as from a command -- line invocation. module Hpp.CmdLine (runWithArgs) where@@ -25,6 +25,7 @@ splitSwitches ('-':'D':t@(_:_)) = ["-D",t] splitSwitches ('-':'U':t@(_:_)) = ["-U",t] splitSwitches ('-':'o':t@(_:_)) = ["-o",t]+splitSwitches ('-':'i':'n':'c':'l':'u':'d':'e':t@(_:_)) = ["-include",t] splitSwitches x = [x]  -- FIXME: Defining function macros probably doesn't work here.