I'm working on a Haskell project (Happstack server + Blaze HTML/front-end as main libraries) and I want to add a static data directory.
Looks like you can do so with Cabal using the auto-generated Path_<package_name> module. So in my example, the package is called new-website, so that module should be called Paths_new_website.
Link to Cabal docs re: a custom package's Paths_pkgname module.
From the command line and using cabal repl, I am trying to confirm that I'll have access to the Paths_ module. However, I'm finding that the Paths_new_website module isn't being imported by Cabal when running cabal_repl.
Here's a link to some relevant code and terminal output via a gist.
Does anyone have experience with this, getting a finicky Paths_ module to load with my package? I suspect this may be a question of lexical scope between Main.hs (the primary source file) versus the context in cabal_repl...
Paths_*modules during the build. (Edit: Oh, just saw it,cabal repl) - J. Abrahamsonimport Paths_*(where*is the package name in my.cabalbuild file) inside ofMain.hs. The cabal documentation made it seem like I only needed to addPaths_*inside of my.cabalfile beneathother-modulesand I would automatically have access to thePaths_*module. Not the case! In fact, even without that addition to my.cabalfile I'm able to import the auto-generatedPaths_*module intoMain. - mecampbellsoupcabal replis executing a build - is that correct? - mecampbellsoup