digraph 0.2.1 → 0.2.2
raw patch · 4 files changed
+15/−3 lines, 4 filesdep ~massivPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: massiv
API changes (from Hackage documentation)
- Data.DiGraph.FloydWarshall: distMatrix_ :: Source r Ix2 Int => Array r Ix2 Int -> Array D Ix2 Double
+ Data.DiGraph.FloydWarshall: distMatrix_ :: Source r Int => Array r Ix2 Int -> Array D Ix2 Double
Files
- CHANGELOG.md +4/−0
- LICENSE +1/−1
- digraph.cabal +1/−1
- src/Data/DiGraph/FloydWarshall.hs +9/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for digraph +## 0.2.2 -- 2021-08-02++* Support for `massiv >=1.01`+ ## 0.2.1 -- 2021-06-24 * Build with GHC-9
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2019, Kadena LLC+Copyright (c) 2019-2021, Kadena LLC All rights reserved.
digraph.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: digraph-version: 0.2.1+version: 0.2.2 synopsis: Directed Graphs description: Directed graphs implementation that is based on unordered-containers homepage: https://github.com/kadena-io/digraph
src/Data/DiGraph/FloydWarshall.hs view
@@ -8,7 +8,7 @@ -- | -- Module: Data.DiGraph.FloydWarshall--- Copyright: Copyright © 2018 Kadena LLC.+-- Copyright: Copyright © 2018-2021 Kadena LLC. -- License: MIT -- Maintainer: Lars Kuhtz <lars@kadena.io> -- Stability: experimental@@ -156,7 +156,11 @@ -- intDistMatrix :: Real a+#if MIN_VERSION_massiv(1,0,0)+ => Source r a+#else => Source r Ix2 a+#endif => Array r Ix2 a -> Array M.D Ix2 (Double, Int) intDistMatrix = M.imap go@@ -194,7 +198,11 @@ -- | Floyd Warshall Without Paths (more efficient, by factor of 2). -- distMatrix_+#if MIN_VERSION_massiv(1,0,0)+ :: Source r Int+#else :: Source r Ix2 Int+#endif => Array r Ix2 Int -> Array M.D Ix2 Double distMatrix_ = M.imap go