Skip to content

Commit

Permalink
Default constraintKindArgs to an empty list (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman authored Jan 21, 2021
1 parent 1e76c8b commit d0d0b09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pursuit.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pursuit
version: 0.8.1
version: 0.8.2
cabal-version: >= 1.8
build-type: Simple
license: MIT
Expand Down
3 changes: 1 addition & 2 deletions src/SearchIndex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ extractChildDeclarationType declTitle declInfo cdeclInfo =
, P.constraintArgs = map (P.TypeVar () . fst) args
, P.constraintData = Nothing
, P.constraintAnn = ()
-- TODO: Verify that defaulting to `kindType` works
, P.constraintKindArgs = map (fromMaybe (P.kindType $> ()) . snd) args
, P.constraintKindArgs = []
}
in
Just (addConstraint constraint ty)
Expand Down

0 comments on commit d0d0b09

Please sign in to comment.