pkamenarsky / replica

A remote virtual DOM library for Haskell
BSD 3-Clause "New" or "Revised" License
139 stars 14 forks source link

The `js` path and files need added to the cabal distribution #16

Open TomMD opened 4 years ago

TomMD commented 4 years ago

The cabal release of this package is missing the js directory and files thus resulting in a build error:

src/Replica/VDOM.hs:259:16-50: error:
    • Exception when trying to run compile-time code:
        js/dist/client.js: openBinaryFile: does not exist (No such file or directory)
      Code: FE.embedFile "js/dist/client.js"
    • In the untyped splice: $(FE.embedFile "js/dist/client.js")                                          |                                                                                                 259 | clientDriver = $(FE.embedFile "js/dist/client.js")
seagreen commented 4 years ago

Might want to use makeRelativeToProject as well: https://hackage.haskell.org/package/file-embed-0.0.11.2/docs/Data-FileEmbed.html#v:makeRelativeToProject