unit testing - How to separate production and test code in Haskell -


in other languages put unit tests in different directory structure production code keep things cleanly separated. there typical convention in haskell of how or similar?

there typical convention codified @ http://www.haskell.org/haskellwiki/structure_of_a_haskell_project.

additionally, can add test build main cabal in https://github.com/ekmett/speculation/blob/master/speculation.cabal

there bonuses separate cabal method. namely testing methods quickcheck generators datatypes available in second project-test style cabal others can import if using data structures in projects, prefer single cabal approach. depends on purpose of library though.

haskell testing workflow useful more testing info.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -