Skip to content

Commit

Permalink
Revert currentVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
jborkowski committed Sep 6, 2023
1 parent 85bd4c3 commit 5685625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Language/PureScript/Externs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ currentVersion = showVersion Paths.version ++ "-restaumatic1"
-- version.
externsIsCurrentVersion :: ExternsFile -> Bool
externsIsCurrentVersion ef =
T.unpack (efVersion ef) == showVersion Paths.version
T.unpack (efVersion ef) == currentVersion

-- | Convert an externs file back into a module
applyExternsFileToEnvironment :: ExternsFile -> Environment -> Environment
Expand Down Expand Up @@ -210,7 +210,7 @@ moduleToExternsFile :: Module -> Environment -> M.Map Ident Ident -> ExternsFile
moduleToExternsFile (Module _ _ _ _ Nothing) _ _ = internalError "moduleToExternsFile: module exports were not elaborated"
moduleToExternsFile (Module ss _ mn ds (Just exps)) env renamedIdents = ExternsFile{..}
where
efVersion = T.pack (showVersion Paths.version)
efVersion = T.pack currentVersion
efModuleName = mn
efExports = map renameRef exps
efImports = mapMaybe importDecl ds
Expand Down

0 comments on commit 5685625

Please sign in to comment.