Skip to content

Commit

Permalink
Fix hls-graph ide build with embed-files (#2485)
Browse files Browse the repository at this point in the history
* Fix hls-graph build with embed-files flag

* fix hls-graph maintainer email

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
pepeiborra and mergify[bot] authored Dec 14, 2021
1 parent 1124137 commit d95d0ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hls-graph/hls-graph.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
maintainer: The Haskell IDE Team
copyright: The Haskell IDE Team
category: Development
build-type: Simple
Expand Down
8 changes: 7 additions & 1 deletion hls-graph/src/Development/IDE/Graph/Internal/Paths.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d95d0ee

Please sign in to comment.