Skip to content

Commit 97d88a3

Browse files
committed
removed spurious Either/ExceptT
1 parent 66e4cea commit 97d88a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hdb/Development/Debug/Session/Setup.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ hieBiosSetup :: LogAction IO (WithSeverity SessionSetupLog)
8383
hieBiosSetup logger projectRoot entryFile = do
8484

8585
logInfo "Figuring out the right flags to compile the project using hie-bios..."
86-
cradle <- hieBiosCradle logger projectRoot entryFile & ExceptT
86+
cradle <- hieBiosCradle logger projectRoot entryFile & liftIO
8787

8888
-- GHC is found in PATH (by hie-bios as well).
8989
logInfo "Checking GHC version against debugger version..."
@@ -102,8 +102,8 @@ hieBiosSetup logger projectRoot entryFile = do
102102
hieBiosCradle :: LogAction IO (WithSeverity SessionSetupLog)
103103
-> FilePath -- ^ Project root
104104
-> FilePath -- ^ Entry file relative to root
105-
-> IO (Either String (HIE.Cradle Void))
106-
hieBiosCradle logger root relTarget = runExceptT $ do
105+
-> IO (HIE.Cradle Void)
106+
hieBiosCradle logger root relTarget = do
107107
let target = root </> relTarget
108108
explicitCradle <- HIE.findCradle target & liftIO
109109
cradle <- maybe (loadImplicitCradle hieBiosLogger target)

0 commit comments

Comments
 (0)