Skip to content

Commit 1087bb5

Browse files
committed
SAWScript.Loader: Avoid writing "Options.Options"
1 parent 4db4a29 commit 1087bb5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

saw-script/src/SAWScript/Loader.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import qualified SAWSupport.ScopedMap as ScopedMap
3030

3131
import SAWCentral.Position (Pos, getPos)
3232
import qualified SAWCentral.Options as Options
33+
import SAWCentral.Options (Options)
3334
import SAWCentral.AST
3435
import SAWCentral.Value (Environ(..), RebindableEnv)
3536

@@ -111,7 +112,7 @@ panicOnMsgs whoAmI result = case result of
111112
-- into this file. Prints any warnings, and return just errors or a
112113
-- result.
113114
--
114-
dispatchMsgs :: Options.Options -> WithMsgs a -> IO (Either [Text] a)
115+
dispatchMsgs :: Options -> WithMsgs a -> IO (Either [Text] a)
115116
dispatchMsgs opts result =
116117
let printMsg vrb msg =
117118
Options.printOutLn opts vrb (Text.unpack msg)
@@ -257,7 +258,7 @@ readStmtSemiUnchecked fileName str = do
257258

258259
-- | Load the 'Stmt's in a @.saw@ file.
259260
-- Doesn't run the typechecker (yet).
260-
loadFileUnchecked :: Options.Options -> FilePath -> IO (Either [Text] [Stmt])
261+
loadFileUnchecked :: Options -> FilePath -> IO (Either [Text] [Stmt])
261262
loadFileUnchecked opts fname = do
262263
Options.printOutLn opts Options.Info $ "Loading file " ++ show fname
263264
ftext <- TextIO.readFile fname
@@ -271,7 +272,7 @@ loadFileUnchecked opts fname = do
271272
-- found, load it. If not, fail by returning `Left`.
272273
--
273274
-- Doesn't run the typechecker (yet).
274-
findAndLoadFileUnchecked :: Options.Options -> FilePath -> IO (Either [Text] [Stmt])
275+
findAndLoadFileUnchecked :: Options -> FilePath -> IO (Either [Text] [Stmt])
275276
findAndLoadFileUnchecked opts fp = do
276277
let paths = Options.importPath opts
277278
mfname <- findFile paths fp

0 commit comments

Comments
 (0)