You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am creating a website in a monorepo using yesod and I am trying to include bootstrap (the css framework) in the binary. My repo structure is like this:
//third_party/bootstrap/css
//src/haskell/web
I tried using a filegroup and data into the build sandbox but It looks like bootstrap is only available at run time and not at compile time making impossible to use the template haskell helpers that are available in Yesod.
Describe the solution you'd like
I would like to have bootstrap.css at compile time so I can use mkEmbeddedStatic to embed the css into a Haskell library that I can use from other parts of the repo.
An environment variable that could point to this css (or any other static file) could also be an alternative.
Describe alternatives you've considered
I tried using filegroup to export the css from the third party directory and importing it into my haskell library. Running the following code in the library I was unable to find the css use it in mkEmbeddedStatic.
test :: Q [Dec]
test = do
liftIO $ do
output <- readProcess "tree" [] []
putStrLn output
return []
I also tried using "data" to point to the css. I was also unable to find there the css.
Additional context
So, I am relative new to bazel so I am not sure if this use case is already covered by other methods or not or how much it is specific related to the haskell rules or it is more a general bazel issue. I could also help with the implementation of this with a few hints as I am not really familiar with the internals of bazel.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I am creating a website in a monorepo using yesod and I am trying to include bootstrap (the css framework) in the binary. My repo structure is like this:
I tried using a filegroup and data into the build sandbox but It looks like bootstrap is only available at run time and not at compile time making impossible to use the template haskell helpers that are available in Yesod.
Describe the solution you'd like
I would like to have bootstrap.css at compile time so I can use mkEmbeddedStatic to embed the css into a Haskell library that I can use from other parts of the repo.
An environment variable that could point to this css (or any other static file) could also be an alternative.
Describe alternatives you've considered
I tried using filegroup to export the css from the third party directory and importing it into my haskell library. Running the following code in the library I was unable to find the css use it in mkEmbeddedStatic.
I also tried using "data" to point to the css. I was also unable to find there the css.
Additional context
So, I am relative new to bazel so I am not sure if this use case is already covered by other methods or not or how much it is specific related to the haskell rules or it is more a general bazel issue. I could also help with the implementation of this with a few hints as I am not really familiar with the internals of bazel.
The text was updated successfully, but these errors were encountered: