@@ -328,10 +328,10 @@ createThunkWithLatest target s = do
328328updateThunkToLatest :: MonadObelisk m => FilePath -> m ()
329329updateThunkToLatest target = do
330330 (overwrite, ptr) <- readThunk target >>= \case
331− Left err -> liftIO $ failWith $ T.pack $ "thunk update: " <> show err
331+ Left err -> failWith $ T.pack $ "thunk update: " <> show err
332332 Right c -> case c of
333333 ThunkData_Packed t -> return (target, t)
334− ThunkData_Checkout _ -> liftIO $ failWith "cannot update an unpacked thunk"
334+ ThunkData_Checkout _ -> failWith "cannot update an unpacked thunk"
335335 let src = _thunkPtr_source ptr
336336 rev <- liftIO $ getLatestRev src
337337 overwriteThunk overwrite $ ThunkPtr
@@ -410,7 +410,7 @@ nixBuildThunkAttrWithCache thunkDir attr = do
410410 --This should be guaranteed by the command argument parser.
411411 let cacheErrHandler e
412412 | isDoesNotExistError e = return Nothing -- expected from a cache miss
413− | otherwise = liftIO $ putError (T.pack $ displayException e) >> return Nothing
413+ | otherwise = putError (T.pack $ displayException e) >> return Nothing
414414 cacheDir = thunkDir </> ".attr-cache"
415415 cachePath = cacheDir </> attr <.> "out"
416416 liftIO $ createDirectoryIfMissing False cacheDir
@@ -423,7 +423,7 @@ nixBuildThunkAttrWithCache thunkDir attr = do
423423 case cacheHit of
424424 Just c -> return c
425425 Nothing -> do
426− liftIO $ putWarning $ T.pack $ mconcat [thunkDir, ": ", attr, " not cached, building ..."]
426+ putWarning $ T.pack $ mconcat [thunkDir, ": ", attr, " not cached, building ..."]
427427 _ <- nixBuild $ def
428428 { _nixBuildConfig_target = Target
429429 { _target_path = thunkDir
@@ -459,15 +459,15 @@ unpackThunk
459459 => FilePath
460460 -> m ()
461461unpackThunk thunkDir = readThunk thunkDir >>= \case
462− Left err -> liftIO $ failWith $ "thunk unpack: " <> (T.pack $ show err)
462+ Left err -> failWith $ "thunk unpack: " <> (T.pack $ show err)
463463 --TODO: Overwrite option that rechecks out thunk; force option to do so even if working directory is dirty
464− Right (ThunkData_Checkout _) -> liftIO $ failWith "thunk unpack: thunk is already unpacked"
464+ Right (ThunkData_Checkout _) -> failWith "thunk unpack: thunk is already unpacked"
465465 Right (ThunkData_Packed tptr) -> case _thunkPtr_source tptr of
466466 ThunkSource_GitHub s | (thunkParent, thunkName) <- splitFileName thunkDir -> withTempDirectory thunkParent thunkName $ \tmpRepo -> do
467467 mauth <- liftIO $ getHubAuth "github.com"
468468 repoResult <- liftIO $ executeRequestMaybe mauth $ repositoryR (_gitHubSource_owner s) (_gitHubSource_repo s)
469469 githubURI <- liftIO $ either throwIO (return . repoSshUrl) repoResult >>= \case
470− Nothing -> liftIO $ failWith "Cannot determine clone URI for thunk source"
470+ Nothing -> failWith "Cannot determine clone URI for thunk source"
471471 Just c -> return $ T.unpack $ getUrl c
472472 withSpinner "Cloning from GitHub ..." (Just $ "Cloned " <> githubURI) $ do
473473 liftIO $ callProcess "hub" --TODO: Depend on hub explicitly
@@ -514,8 +514,8 @@ packThunk
514514 -> String
515515 -> m ()
516516packThunk thunkDir upstream = readThunk thunkDir >>= \case
517− Left err -> liftIO $ failWith $ T.pack $ "thunk pack: " <> show err
518− Right (ThunkData_Packed _) -> liftIO $ failWith "pack: thunk is already packed"
517+ Left err -> failWith $ T.pack $ "thunk pack: " <> show err
518+ Right (ThunkData_Packed _) -> failWith "pack: thunk is already packed"
519519 Right (ThunkData_Checkout _) -> do
520520 thunkPtr <- liftIO $ getThunkPtr thunkDir upstream
521521 liftIO $ callProcess "rm"