From eb8596a92f9b352ec8c99d228dc03dcd6d007783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hr=C4=8Dek?= Date: Mon, 16 Jun 2025 08:47:28 +0200 Subject: [PATCH] Release 0.7.0.0 --- .github/workflows/haskell-ci.yml | 12 ++++++------ CHANGELOG.md | 7 +++++++ hiedb.cabal | 4 ++-- src/HieDb/Query.hs | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index 12e4f17..bef6837 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -8,9 +8,9 @@ # # For more information, see https://github.com/haskell-CI/haskell-ci # -# version: 0.19.20250330 +# version: 0.19.20250605 # -# REGENDATA ("0.19.20250330",["github","cabal.project"]) +# REGENDATA ("0.19.20250605",["github","cabal.project"]) # name: Haskell-CI on: @@ -33,9 +33,9 @@ jobs: compilerVersion: 9.12.2 setup-method: ghcup allow-failure: false - - compiler: ghc-9.10.1 + - compiler: ghc-9.10.2 compilerKind: ghc - compilerVersion: 9.10.1 + compilerVersion: 9.10.2 setup-method: ghcup allow-failure: false - compiler: ghc-9.8.4 @@ -76,8 +76,8 @@ jobs: chmod a+x "$HOME/.ghcup/bin/ghcup" - name: Install cabal-install run: | - "$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.1-p1 || (cat "$HOME"/.ghcup/logs/*.* && false) - echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.1-p1 -vnormal+nowrap" >> "$GITHUB_ENV" + "$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false) + echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV" - name: Install GHC (GHCup) if: matrix.setup-method == 'ghcup' run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 37a1f41..43fdccd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Revision history for hiedb +## 0.7.0.0 + +* DB schema change: added new bool field `refs.is_generated` to distinguish between references coming from source code +and those generated by the compiler +* Extended `hie-db ref-graph` cli command by adding possibility to filter by occurrence name / module / unit-id: + `hiedb ref-graph [NAME] [MODULE] [-u|--unit-id UNITID]` + ## 0.6.0.2 * Bump base and ghc version bounds to support GHC 9.12 diff --git a/hiedb.cabal b/hiedb.cabal index 509e9cb..b7b50d6 100644 --- a/hiedb.cabal +++ b/hiedb.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: hiedb -version: 0.6.0.2 +version: 0.7.0.0 synopsis: Generates a references DB from .hie files description: Tool and library to index and query a collection of `.hie` files bug-reports: https://github.com/wz1000/HieDb/issues @@ -21,7 +21,7 @@ tested-with: GHC ==9.0.2 || ==9.4.8 || ==9.6.7 || ==9.8.4 - || ==9.10.1 + || ==9.10.2 || ==9.12.2 source-repository head diff --git a/src/HieDb/Query.hs b/src/HieDb/Query.hs index b6394f0..9370627 100644 --- a/src/HieDb/Query.hs +++ b/src/HieDb/Query.hs @@ -5,7 +5,7 @@ {-# LANGUAGE ScopedTypeVariables #-} module HieDb.Query where -import Algebra.Graph.AdjacencyMap (AdjacencyMap, adjacencyMap, edges, induce, vertexSet, vertices, overlay, transpose) +import Algebra.Graph.AdjacencyMap (AdjacencyMap, edges, induce, vertexSet, vertices, overlay, transpose) import Algebra.Graph.AdjacencyMap.Algorithm (reachable) import Algebra.Graph.Export.Dot hiding ((:=)) import qualified Algebra.Graph.Export.Dot as G