Kabbalah "Data files" are not copied

I am trying to use the "data-files" mechanism, and the material works fine , except that the corresponding files are not copied to the share/ directory. for example my .cabal file looks like this:

 name: nano-js version: 0.1.0.0 data-files: include/prelude.js 

but after creating and installing the directory

 .hsenv/cabal/share/nano-js-0.1.0.0 

does not exist. So form requests

 getDataFileName "include/prelude.js" 

output a FilePath that does not exist

 nanojs: /home/rjhala/research/liquid/.hsenv/cabal/share/nano-js-0.1.0.0/include/prelude.js: openFile: does not exist (No such file or directory) 

Are additional keywords required to populate share/ ?

Or could that be a problem with hsenv ?

Thanks!

+6
source share
1 answer

I was stupid - offer data-files should be in the top, when I buried it in the executable section ...!

+2
source

Source: https://habr.com/ru/post/944893/


All Articles