X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FUtils%2FGhcTools.hs;h=9139c786d13c13c01674531a5eecdda3fb0477e2;hb=e7f89819c61188a732c8f011d74d783800e88da8;hp=5a041cc021173b79fbcb1ccd3cee14dee6808d8e;hpb=d42006e5be8a3d6e3970b84767856b77d00f7f73;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git "a/c\316\273ash/CLasH/Utils/GhcTools.hs" "b/c\316\273ash/CLasH/Utils/GhcTools.hs" index 5a041cc..9139c78 100644 --- "a/c\316\273ash/CLasH/Utils/GhcTools.hs" +++ "b/c\316\273ash/CLasH/Utils/GhcTools.hs" @@ -89,7 +89,7 @@ loadModules libdir filenames finder = GHC.runGhc (Just libdir) $ do dflags <- GHC.getSessionDynFlags GHC.setSessionDynFlags dflags - cores <- mapM GHC.compileToCoreModule filenames + cores <- mapM GHC.compileToCoreSimplified filenames env <- GHC.getSession specs <- case finder of Nothing -> return [] @@ -161,6 +161,7 @@ findSpec topc statec testc mod = do top <- findBind topc mod state <- findExpr statec mod test <- findExpr testc mod - case top of - Just t -> return [(t, state, test)] - Nothing -> error $ "Could not find top entity requested" + return [(top, state, test)] + -- case top of + -- Just t -> return [(t, state, test)] + -- Nothing -> return error $ "Could not find top entity requested"