Skip to content

Commit

Permalink
[fix] missing cases, import the right module, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
scmu committed Aug 1, 2024
1 parent 8bd9694 commit b93ca2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Server/Hover.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ instance Collect Typed.Expr where
collect (Typed.Quant quantifier _bound restriction inner _) = collect quantifier <> collect restriction <> collect inner
collect (Typed.ArrIdx expr1 expr2 _) = collect expr1 <> collect expr2
collect (Typed.ArrUpd arr index expr _) = collect arr <> collect index <> collect expr
collect (Typed.Subst e sb) = collect e <> foldMap collect (map snd sb)

instance Collect Typed.Chain where
collect (Typed.Pure expr) = collect expr
Expand Down
4 changes: 2 additions & 2 deletions src/Server/Load.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Control.Monad.Except (runExcept)
import Server.PositionMapping (idDelta)
import qualified Server.SrcLoc as SrcLoc
import qualified GCL.Type as TypeChecking
import GCL.WP.Type (StructError, StructWarning)
import GCL.WP.Types (StructError, StructWarning)
import GCL.Predicate (PO, Spec)
import Server.Notification.Update (sendUpdateNotification)
import qualified Data.Text as Text
Expand Down Expand Up @@ -67,7 +67,7 @@ load filePath = do
load filePath
Right abstract -> do
logText " all holes digged\n"
case WP.sweep abstract of
case undefined of -- was "WP.sweep abstract". TODO: fix it
Left err -> do
logText " sweep error\n"
onError (StructError err)
Expand Down

0 comments on commit b93ca2a

Please sign in to comment.