haskell - Finding my executable in a Cabal test suite -
i'm trying write test suite cabal project builds executable. i'd tests in suite run particular executable, don't know find (because tests might getting run sandbox in unknown location).
cabal ought know project's executable when calls test suite. there way test module/program gather , other similar information cabal, perhaps new detailed-1.0 testing framework?
there's "magic" module can include in cabal file query paths related project.
name: myproject library other-modules: paths_myproject exported module (import paths_myproject) several filepath values can used query various paths cabal uses when installing project.
paths_myproject.getbindir paths_myproject.getdatadir paths_myproject.getdatafilename paths_myproject.getlibdir paths_myproject.getlibexecdir paths_myproject.getsysconfdir paths_myproject.version
Comments
Post a Comment