diff options
| author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-07-25 17:44:41 -0700 | 
|---|---|---|
| committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-09-21 11:53:46 -0700 | 
| commit | 5890a2d503b3200e9897ce331ad61d808a67fca3 (patch) | |
| tree | aa25803a9d91917792852017da423438d8c41579 /haddock-api | |
| parent | fea4277692ba68cccc6c9642655289037e4b8979 (diff) | |
Track msHsFilePath change.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Diffstat (limited to 'haddock-api')
| -rw-r--r-- | haddock-api/src/Haddock/Interface/Create.hs | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs index ab79fb8d..28f50c35 100644 --- a/haddock-api/src/Haddock/Interface/Create.hs +++ b/haddock-api/src/Haddock/Interface/Create.hs @@ -125,7 +125,9 @@ createInterface tm flags modMap instIfaceMap = do    return $! Interface {      ifaceMod             = mdl -  , ifaceOrigFilename    = msHsFilePath ms +  , ifaceOrigFilename    = case msHsFilePath ms of +                            Just path -> path +                            Nothing -> "(none)"    , ifaceInfo            = info    , ifaceDoc             = Documentation mbDoc modWarn    , ifaceRnDoc           = Documentation Nothing Nothing  | 
