Skip to content

Commit

Permalink
Fix fixities not registering when defined in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
qsctr committed Jun 24, 2022
1 parent 70d9600 commit 4b3eac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cryptol/ModuleSystem/Binds.hs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ topModuleDefs m =
where
mname = thing (mName m)

topDeclsDefs :: [TopDecl PName] -> ModBuilder (Mod ())
topDeclsDefs = declsToMod Nothing
topDeclsDefs :: ModPath -> [TopDecl PName] -> ModBuilder (Mod ())
topDeclsDefs = declsToMod . Just

sigToMod :: ModPath -> Signature PName -> ModBuilder (Mod ())
sigToMod mp sig =
Expand Down
2 changes: 1 addition & 1 deletion src/Cryptol/ModuleSystem/Renamer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ renameTopDecls m ds0 =
let ds = addImplicitNestedImports ds0

-- Step 2: compute what's defined
(defs,errs) <- liftSupply (modBuilder (topDeclsDefs ds))
(defs,errs) <- liftSupply (modBuilder (topDeclsDefs (TopModule m) ds))
mapM_ recordError errs

-- Step 3: resolve imports
Expand Down

0 comments on commit 4b3eac5

Please sign in to comment.