File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
1
2
function lbf {
2
3
cabal run lbf -- $@
3
4
}
Original file line number Diff line number Diff line change @@ -77,11 +77,10 @@ type FrontendT m a = MonadIO m => ReaderT FrontRead (StateT FrontState (ExceptT
77
77
-- | Run a Frontend compilation action on a "lbf" file, return the entire compilation closure or a frontend error.
78
78
runFrontend :: MonadIO m => [FilePath ] -> FilePath -> m (Either FrontendError FrontendResult )
79
79
runFrontend importPaths modFp = do
80
- let stM = runReaderT (processFile modFp) (FrontRead (ModuleName [] ( SourceInfo " " ( SourcePos 0 0 ) ( SourcePos 0 0 ) )) [] importPaths)
80
+ let stM = runReaderT (processFile modFp) (FrontRead (ModuleName [] defaultSouceInfo )) [] importPaths)
81
81
exM = runStateT stM (FrontState mempty )
82
82
ioM = runExceptT exM
83
- _ <- ioM
84
- fmap (FrontendResult . importedModules . snd ) <$> ioM
83
+ fmap (FrontendResult . importedModules . snd ) <$> runExceptT exM
85
84
86
85
throwE' :: FrontendError -> FrontendT m a
87
86
throwE' = lift . lift . throwE
You can’t perform that action at this time.
0 commit comments