Skip to content
Snippets Groups Projects
Commit 91c65619 authored by Zubin's avatar Zubin Committed by Ben Gamari
Browse files

update for new way to store hiefile headers

parent 91f55209
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ import System.Directory
import System.FilePath
import HieTypes ( HieFile(..), HieASTs(..) )
import HieBin ( readHieFile )
import HieBin ( readHieFile, hie_file_result)
import Data.Map as M
import FastString ( mkFastString )
import Module ( Module, moduleName )
......@@ -60,7 +60,8 @@ ppHyperlinkedModuleSource srcdir pretty srcs iface = case ifaceHieFile iface of
, hie_asts = HieASTs asts
, hie_types = types
, hie_hs_src = rawSrc
} <- fmap fst (readHieFile (initNameCache u []) hfp)
} <- (hie_file_result . fst)
<$> (readHieFile (initNameCache u []) hfp)
-- Get the AST and tokens corresponding to the source file we want
let mast | M.size asts == 1 = snd <$> M.lookupMin asts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment