Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions dhall/src/Dhall/Import.hs
Original file line number Diff line number Diff line change
Expand Up @@ -756,14 +756,15 @@ loadWith expr₀ = case expr₀ of
:: (MonadCatch m)
=> MissingImports
-> StateT (Status m) m (Expr Src Import)
handler₀ e@(MissingImports []) = throwM e
handler₀ (MissingImports [e]) =
throwMissingImport (Imported imports' e)
handler₀ (MissingImports es) = throwM
(MissingImports
(fmap
(\e -> (toException (Imported imports' e)))
es))
handler₀ (MissingImports es) =
throwM
(MissingImports
(map
(\e -> toException (Imported imports' e))
es
)
)

handler₁
:: (MonadCatch m)
=> SomeException
Expand Down