Skip to content

Commit

Permalink
Bump version to 0.6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcek committed Feb 11, 2024
1 parent 4c8c065 commit e04543a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# Revision history for hiedb

## 0.6.0.0 -- 2024-12-11

* Add index on column `unit` of table `mods`
* Add new table `imports` which indexes import statements
* Add new cli options that allow selectively skipping indexing of some things:
`--skip-refs` Skip refs table when indexing
`--skip-decls` Skip decls table when indexing
`--skip-defs` Skip defs table when indexing
`--skip-exports` Skip exports table when indexing
`--skip-imports` Skip imports table when indexing
`--skip-types` Skip types and typerefs table when indexing
`--skip-typerefs` Skip typerefs table when indexing
* Fix bug where duplicate entries were inserted into typerefs table during indexing
* Fix bug in searchDef query which was mistakenly not including ':' when searching by occurrence names

## 0.5.0.1 -- 2024-01-12

- Fix incorrect Show Symbol instance in 0.5.0.0
* Fix incorrect Show Symbol instance in 0.5.0.0

## 0.5.0.0 -- 2024-01-12

- Handle duplicate record fields in GHC 9.8 instead of crashing
* Handle duplicate record fields in GHC 9.8 instead of crashing

## 0.4.4.0 -- 2023-11-13
* Add `--src-base-dir` option allowing for src file indexing in `mods`
Expand Down
2 changes: 1 addition & 1 deletion hiedb.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: hiedb
version: 0.5.0.1
version: 0.6.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
Expand Down
6 changes: 2 additions & 4 deletions src/HieDb/Create.hs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ addTypeRefs db path hf ixs = mapM_ addTypesFromAst asts
-- | Options to skip indexing phases
data SkipOptions =
SkipOptions
{
skipRefs :: Bool
{ skipRefs :: Bool
, skipDecls :: Bool
, skipDefs :: Bool
, skipExports :: Bool
Expand All @@ -242,8 +241,7 @@ data SkipOptions =
defaultSkipOptions :: SkipOptions
defaultSkipOptions =
SkipOptions
{
skipRefs = False
{ skipRefs = False
, skipDecls = False
, skipDefs = False
, skipExports = False
Expand Down
3 changes: 1 addition & 2 deletions src/HieDb/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ optParser defdb colr
types <- switch (long "skip-types" <> help "Skip types and typerefs table when indexing")
typeRefs <- switch (long "skip-typerefs" <> help "Skip typerefs table when indexing")
pure $ SkipOptions
{
skipRefs = refs
{ skipRefs = refs
, skipDecls = decls
, skipDefs = defs
, skipExports = exports
Expand Down

0 comments on commit e04543a

Please sign in to comment.