diff --git a/hls-graph/hls-graph.cabal b/hls-graph/hls-graph.cabal index 92ef36eeae..6c43045293 100644 --- a/hls-graph/hls-graph.cabal +++ b/hls-graph/hls-graph.cabal @@ -10,7 +10,7 @@ bug-reports: https://github.com/haskell/haskell-language-server/issues license: Apache-2.0 license-file: LICENSE author: The Haskell IDE Team -maintainer: alan.zimm@gmail.com +maintainer: The Haskell IDE Team copyright: The Haskell IDE Team category: Development build-type: Simple diff --git a/hls-graph/src/Development/IDE/Graph/Internal/Paths.hs b/hls-graph/src/Development/IDE/Graph/Internal/Paths.hs index 4cb56239bb..bccc11198f 100644 --- a/hls-graph/src/Development/IDE/Graph/Internal/Paths.hs +++ b/hls-graph/src/Development/IDE/Graph/Internal/Paths.hs @@ -20,8 +20,14 @@ import Data.FileEmbed htmlDataFiles :: [(FilePath, BS.ByteString)] htmlDataFiles = - [ ("profile.html", $(embedFile "html/profile.html")) + [ +#ifdef __GHCIDE__ + ("profile.html", $(embedFile "hls-graph/html/profile.html")) + , ("shake.js", $(embedFile "hls-graph/html/shake.js")) +#else + ("profile.html", $(embedFile "html/profile.html")) , ("shake.js", $(embedFile "html/shake.js")) +#endif ] readDataFileHTML :: FilePath -> IO LBS.ByteString