Skip to content

Commit d95d0ee

Browse files
Fix hls-graph ide build with embed-files (#2485)
* 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>
1 parent 1124137 commit d95d0ee

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

hls-graph/hls-graph.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bug-reports: https://github.com/haskell/haskell-language-server/issues
1010
license: Apache-2.0
1111
license-file: LICENSE
1212
author: The Haskell IDE Team
13-
maintainer: alan.zimm@gmail.com
13+
maintainer: The Haskell IDE Team
1414
copyright: The Haskell IDE Team
1515
category: Development
1616
build-type: Simple

hls-graph/src/Development/IDE/Graph/Internal/Paths.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ import Data.FileEmbed
2020

2121
htmlDataFiles :: [(FilePath, BS.ByteString)]
2222
htmlDataFiles =
23-
[ ("profile.html", $(embedFile "html/profile.html"))
23+
[
24+
#ifdef __GHCIDE__
25+
("profile.html", $(embedFile "hls-graph/html/profile.html"))
26+
, ("shake.js", $(embedFile "hls-graph/html/shake.js"))
27+
#else
28+
("profile.html", $(embedFile "html/profile.html"))
2429
, ("shake.js", $(embedFile "html/shake.js"))
30+
#endif
2531
]
2632

2733
readDataFileHTML :: FilePath -> IO LBS.ByteString

0 commit comments

Comments
 (0)