作为Haskell的新手,我正在寻找可以学习和学习的开源Haskell应用程序.
特别是,我正在寻找显示以下内容的开源项目:
你会推荐什么样的开源项目作为现代Haskell编程的典范?
读者注意:请耐心等待.我保证会有一个问题.
我有一个问题需要解决并自己思考"哦,我会用Ruby做的."
$ bundle gem problemsolver
create problemsolver/Gemfile
create problemsolver/Rakefile
create problemsolver/.gitignore
create problemsolver/problemsolver.gemspec
create problemsolver/lib/problemsolver.rb
create problemsolver/lib/problemsolver/version.rb
Initializating git repo in /tmp/harang/problemsolver
Run Code Online (Sandbox Code Playgroud)
删除s.add_development_dependency "rspec"in中的注释problemsolver/problemsolver.gemspec然后
$ bundle exec rspec --init
The --configure option no longer needs any arguments, so true was ignored.
create spec/spec_helper.rb
create .rspec
Run Code Online (Sandbox Code Playgroud)
新的测试进入spec/并且必须在最终的文件中_spec.rb.例如,spec/version_spec.rb
describe 'Problemsolver' do
it 'should be at version 0.0.1' do
Problemsolver::VERSION.should == '0.0.1'
end
end
Run Code Online (Sandbox Code Playgroud)
要运行规范 - 忽略像守卫这样的代码更改运行者 - 这是微不足道的:
$ …Run Code Online (Sandbox Code Playgroud) 在HTF上有一个令人难以置信的缺乏体面的文档.我所能找到的只是一个教程,它没有提供以下任何真正重要的信息:
在其他语言中,我喜欢将我的单元测试放在与生产代码不同的目录结构中,以保持清晰的分离.在Haskell中有一个典型的约定,如何做到这一点或类似的东西?
我是一名具有多种语言背景的程序员,但最近专注于Ruby/Rails并且有兴趣学习一些Haskell.我已经在Closure中做了一些游戏(虽然很基本的东西).
我目前开发新Ruby应用程序的首选方法是从使用Gherkin/Cucumber之类的业务价值语言开始高级测试,然后使用RSpec或Minitest等开发小规模组件.什么是(目前)开发新Haskell应用程序最常用的类似工具集和策略?
响应者:请耐心等待我的投票和回答.我必须在Haskell中做一些工作才能进行任何评估.谢谢.