File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
* ` FortranVersion ` from ` ParserMonad ` moved to its own module
4
4
` Language.Fortran.Version ` . ` ParserMonad ` will re-export it for now.
5
- * ` Version.deduceVersion ` renamed to ` deduceFortranVersion ` .
5
+ * ` Version.deduceVersion ` renamed to ` deduceFortranVersion ` due to often being
6
+ imported non-qualified. ` deduceVersion ` remains as an alias.
6
7
* Provide a continuation reformatter in ` PrettyPrint ` . Runs on ` String ` s and
7
8
doesn't guarantee the output is a valid program, so not enabled by default.
8
9
* Add a diff-like rewriter, similar to
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module Language.Fortran.Version
8
8
, fortranVersionAliases
9
9
, selectFortranVersion
10
10
, deduceFortranVersion
11
+ , deduceVersion -- deprecated
11
12
) where
12
13
13
14
import Data.Char (toLower )
@@ -67,3 +68,7 @@ deduceFortranVersion path
67
68
| otherwise = Fortran90 -- unrecognized, default to F90
68
69
where
69
70
isExtensionOf = flip isSuffixOf $ map toLower path
71
+
72
+ -- | Alias for previous function name. TODO: deprecate eventually.
73
+ deduceVersion :: FilePath -> FortranVersion
74
+ deduceVersion = deduceFortranVersion
You can’t perform that action at this time.
0 commit comments