package.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: MyBlog
  2. version: "0.0.0"
  3. dependencies:
  4. # Due to a bug in GHC 8.0.1, we block its usage
  5. # See: https://ghc.haskell.org/trac/ghc/ticket/12130
  6. - base >=4.8.2.0 && <4.9 || >=4.9.1.0 && <5
  7. - yesod >=1.6 && <1.7
  8. - yesod-core >=1.6 && <1.7
  9. - yesod-auth >=1.6 && <1.7
  10. - yesod-static >=1.6 && <1.7
  11. - yesod-form >=1.6 && <1.7
  12. - classy-prelude >=1.4 && <1.5
  13. - classy-prelude-conduit >=1.4 && <1.5
  14. - classy-prelude-yesod >=1.4 && <1.5
  15. - bytestring >=0.9 && <0.11
  16. - text >=0.11 && <2.0
  17. - persistent >=2.8 && <2.9
  18. - persistent-postgresql >=2.8 && <2.9
  19. - persistent-template >=2.5 && <2.9
  20. - template-haskell
  21. - shakespeare >=2.0 && <2.1
  22. - hjsmin >=0.1 && <0.3
  23. - monad-control >=0.3 && <1.1
  24. - wai-extra >=3.0 && <3.1
  25. - yaml >=0.8 && <0.9
  26. - http-client-tls >=0.3 && <0.4
  27. - http-conduit >=2.3 && <2.4
  28. - directory >=1.1 && <1.4
  29. - warp >=3.0 && <3.3
  30. - data-default
  31. - aeson >=0.6 && <1.4
  32. - conduit >=1.0 && <2.0
  33. - monad-logger >=0.3 && <0.4
  34. - fast-logger >=2.2 && <2.5
  35. - wai-logger >=2.2 && <2.4
  36. - file-embed
  37. - safe
  38. - unordered-containers
  39. - containers
  40. - vector
  41. - time
  42. - case-insensitive
  43. - wai
  44. - foreign-store
  45. - markdown
  46. - yesod-text-markdown
  47. # The library contains all of our application code. The executable
  48. # defined below is just a thin wrapper.
  49. library:
  50. source-dirs: src
  51. when:
  52. - condition: (flag(dev)) || (flag(library-only))
  53. then:
  54. ghc-options:
  55. - -Wall
  56. - -fwarn-tabs
  57. - -O0
  58. cpp-options: -DDEVELOPMENT
  59. else:
  60. ghc-options:
  61. - -Wall
  62. - -fwarn-tabs
  63. - -O2
  64. # Runnable executable for our application
  65. executables:
  66. MyBlog:
  67. main: main.hs
  68. source-dirs: app
  69. ghc-options:
  70. - -threaded
  71. - -rtsopts
  72. - -with-rtsopts=-N
  73. dependencies:
  74. - MyBlog
  75. when:
  76. - condition: flag(library-only)
  77. buildable: false
  78. # Test suite
  79. tests:
  80. MyBlog-test:
  81. main: Spec.hs
  82. source-dirs: test
  83. ghc-options: -Wall
  84. dependencies:
  85. - MyBlog
  86. - hspec >=2.0.0
  87. - yesod-test
  88. # Define flags used by "yesod devel" to make compilation faster
  89. flags:
  90. library-only:
  91. description: Build for use with "yesod devel"
  92. manual: false
  93. default: false
  94. dev:
  95. description: Turn on development settings, like auto-reload templates.
  96. manual: false
  97. default: false