packages feed

fortran-src-extras 0.4.0 → 0.4.1

raw patch · 7 files changed

+26/−6 lines, 7 filesdep ~fortran-srcPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: fortran-src

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## 0.4.1 (2023-03-15)+  * fix testing from sdist package (some test data files weren't bundled)+  * bump fortran-src upper bound to 0.13+ ## 0.4.0 (2022-10-19)   * Update to fortran-src 0.12.0 (bumps minimum compiler version to GHC 9.0)   * Set upper bounds for various dependencies
fortran-src-extras.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.35.0.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack  name:           fortran-src-extras-version:        0.4.0+version:        0.4.1 synopsis:       Common functions and utils for fortran-src. description:    Various utility functions and orphan instances which may be useful when using fortran-src. category:       Language@@ -18,6 +18,10 @@ extra-source-files:     README.md     CHANGELOG.md+    test/input_data/analysis/relative_include/include.f+    test/input_data/analysis/relative_include/includee.f+    test/input_data/analysis/with_include_path/include.f+    test/input_data/analysis/with_include_path/includes/includee.f  source-repository head   type: git@@ -68,7 +72,7 @@     , containers >=0.5 && <0.7     , either >=5.0.0 && <5.1     , filepath >=1.4.1.2 && <1.5-    , fortran-src >=0.12.0 && <0.13+    , fortran-src >=0.12.0 && <0.14     , optparse-applicative >=0.14 && <0.18     , text >=1.2 && <2.1     , uniplate >=1.6.10 && <1.7@@ -108,7 +112,7 @@     , base >=4.7 && <5     , bytestring >=0.10 && <0.12     , containers >=0.5 && <0.7-    , fortran-src >=0.12.0 && <0.13+    , fortran-src >=0.12.0 && <0.14     , fortran-src-extras     , optparse-applicative >=0.14 && <0.18     , text >=1.2 && <2.1@@ -153,7 +157,7 @@     , base >=4.7 && <5     , bytestring >=0.10 && <0.12     , containers >=0.5 && <0.7-    , fortran-src >=0.12.0 && <0.13+    , fortran-src >=0.12.0 && <0.14     , fortran-src-extras     , hspec >=2.2 && <3     , optparse-applicative >=0.14 && <0.18
src/Language/Fortran/Extras.hs view
@@ -226,7 +226,7 @@ withToolOptionsAndProgramOrBlock programDescription programHeader optsParser handler = do   RunOptions srcOptions toolOptions <-     getRunOptions programDescription programHeader optsParser-  ast <- if takeExtension (path srcOptions) == ".inc"+  ast <- if takeExtension (path srcOptions) `elem` [".inc", ".ins"]     then Left . (path srcOptions, ) <$> incFile srcOptions     else Right <$> programFile srcOptions   handler toolOptions ast
+ test/input_data/analysis/relative_include/include.f view
@@ -0,0 +1,5 @@+      program main++      include "includee.f"++      end
+ test/input_data/analysis/relative_include/includee.f view
@@ -0,0 +1,1 @@+      character*(*) var_from_includee
+ test/input_data/analysis/with_include_path/include.f view
@@ -0,0 +1,5 @@+      program main++      include "includee.f"++      end
+ test/input_data/analysis/with_include_path/includes/includee.f view
@@ -0,0 +1,1 @@+      character*(*) var_from_includee