carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1cabal-version: 3.0
2name: todo-haskell
3version: 0.1.0.0
4synopsis: Server-rendered TodoMVC for the CARLOS bakeoff
5license: NONE
6build-type: Simple
7extra-source-files:
8 ../../shared/base.css
9 ../../shared/index.css
10 static/app.css
11 static/app.js
12
13common shared
14 default-language: GHC2021
15 default-extensions:
16 OverloadedStrings
17 LambdaCase
18 MultiWayIf
19 ghc-options: -Wall -Wcompat
20
21library
22 import: shared
23 hs-source-dirs: src gen
24 exposed-modules:
25 Todo.App
26 Todo.Assets
27 Todo.Cookie
28 Todo.Db
29 Todo.Form
30 Todo.Html
31 Todo.Model
32 other-modules:
33 BuildVersion
34 build-depends:
35 , base >=4.18 && <5
36 , bytestring >=0.11 && <0.13
37 , cookie >=0.4.6 && <0.6
38 , file-embed >=0.0.15 && <0.1
39 , http-types >=0.12 && <0.13
40 , lucid2 >=0.0.20230706 && <0.1
41 , sqlite-simple >=0.4.18 && <0.5
42 , text >=2.0 && <2.2
43 , wai >=3.2.3 && <3.3
44
45executable todo-haskell
46 import: shared
47 hs-source-dirs: app
48 main-is: Main.hs
49 build-depends:
50 , base
51 , bytestring
52 , network >=3.1 && <3.3
53 , text
54 , todo-haskell
55 , unix >=2.8 && <2.9
56 , wai
57 , warp >=3.3.25 && <3.5
58 ghc-options: -threaded -rtsopts "-with-rtsopts=-N2"
59 -- The shipped linux-arm64 binary is one static file: glibc and every
60 -- library linked in, symbols stripped.
61 if os(linux) && arch(aarch64)
62 ghc-options: -static -optl-static -optl-pthread -optl-s
63
64test-suite spec
65 import: shared
66 type: exitcode-stdio-1.0
67 hs-source-dirs: test
68 main-is: Spec.hs
69 build-depends:
70 , base
71 , bytestring
72 , http-types
73 , text
74 , todo-haskell
75 , wai
76 , wai-extra >=3.1 && <3.2
77 , hspec >=2.10 && <2.12
78 ghc-options: -threaded
79