Skip to content

Commit

Permalink
wrk: add loc in expander error message
Browse files Browse the repository at this point in the history
  • Loading branch information
doyougnu committed Jan 8, 2025
1 parent 95a0ba5 commit 5b6de9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Expander/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,11 @@ getDecl ptr =
zonkDecl (Example loc schPtr e) =
linkedCore e >>=
\case
Nothing -> debug $ InternalError "Missing expr after expansion"
Nothing -> debug . InternalError $ "Missing expr after expansion at: " <> show loc
Just e' ->
linkedScheme schPtr >>=
\case
Nothing -> debug $ InternalError "Missing example scheme after expansion"
Nothing -> debug . InternalError $ "Missing example scheme after expansion: " <> show loc
Just (Scheme ks t) -> do
ks' <- traverse zonkKindDefault ks
pure $ CompleteDecl $ Example loc (Scheme ks' t) e'
Expand Down

0 comments on commit 5b6de9f

Please sign in to comment.