Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 12098b8

Browse files
committed
infra: Update starter
1 parent 9c1bb70 commit 12098b8

File tree

2 files changed

+99
-97
lines changed

2 files changed

+99
-97
lines changed

infra/handler/src/DeckGo/Handler.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ presentationsPut env conn _uid pid pinfo = do
471471
liftIO $ putStrLn $ "PUT PRESENTATION" <> show pid
472472
liftIO $ putStrLn $ unwords
473473
[ "PUT presentation"
474-
, show pinfo
475-
, "(" <> show pid <> ")"
474+
, show (pinfo { presentationSlides = [] })
475+
, "(with ID " <> show pid <> ")"
476476
, show _uid
477477
]
478478

@@ -485,6 +485,8 @@ presentationsPut env conn _uid pid pinfo = do
485485
Servant.throwError Servant.err404
486486
Just u -> pure u
487487

488+
liftIO $ putStrLn $ "Got user from DB: " <> show user
489+
488490
uname <- case userUsername (itemContent user) of
489491
Nothing -> do
490492
liftIO $ putStrLn "User is anonymous"

infra/nix/sources.json

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
{
2-
"deckdeckgo-starter": {
3-
"branch": "master",
4-
"description": "The Progressive Web App alternative for simple presentations",
5-
"homepage": "https://deckdeckgo.com",
6-
"owner": "deckgo",
7-
"repo": "studio-kit",
8-
"rev": "58357c71466e36d1e8d0973f06ab0fd9c5c8f5c3",
9-
"sha256": "178bfwqv2afy1v3r4knm2byhj2yf63dx1s85g3k8k4rfz42vkk29",
10-
"type": "tarball",
11-
"url": "https://github.com/deckgo/studio-kit/archive/58357c71466e36d1e8d0973f06ab0fd9c5c8f5c3.tar.gz",
12-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
13-
},
14-
"elasticmq": {
15-
"sha256": "1cp2pmkc6gx7gr6109jlcphlky5rr6s1wj528r6hyhzdc01sjhhz",
16-
"type": "file",
17-
"url": "https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.14.6.jar",
18-
"url_template": "https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.14.6.jar"
19-
},
20-
"hs-jose": {
21-
"branch": "master",
22-
"description": "Haskell JOSE and JWT library",
23-
"homepage": "http://hackage.haskell.org/package/jose",
24-
"owner": "frasertweedale",
25-
"repo": "hs-jose",
26-
"rev": "71274bf64c0600c1d877152173a08a5bff7adf4d",
27-
"sha256": "0ah189vika1s0jk8f17mn77gilkw24vbs6xlggxw1qj926i6c4pk",
28-
"type": "tarball",
29-
"url": "https://github.com/frasertweedale/hs-jose/archive/71274bf64c0600c1d877152173a08a5bff7adf4d.tar.gz",
30-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
31-
},
32-
"napalm": {
33-
"branch": "master",
34-
"description": "Support for building npm packages in Nix and lightweight npm registry",
35-
"homepage": "",
36-
"owner": "nmattia",
37-
"repo": "napalm",
38-
"rev": "0331a5b586a186c966f816d434bd5c1ecfa16089",
39-
"sha256": "14nlqmmv3xx4cf3r9kcw2xbfgpddppw27ygp8s3r0bbccgwcp9gi",
40-
"type": "tarball",
41-
"url": "https://github.com/nmattia/napalm/archive/0331a5b586a186c966f816d434bd5c1ecfa16089.tar.gz",
42-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
43-
},
44-
"niv": {
45-
"branch": "master",
46-
"description": "Easy dependency management for Nix projects",
47-
"homepage": "https://github.com/nmattia/niv",
48-
"owner": "nmattia",
49-
"repo": "niv",
50-
"rev": "c2698b0780b783880e0b1a520723948fe3b5c26a",
51-
"sha256": "0v68x0h9si6kjqg5fcjrgsbsf4x18m32a786yvjmrdkrki9qwmcq",
52-
"type": "tarball",
53-
"url": "https://github.com/nmattia/niv/archive/c2698b0780b783880e0b1a520723948fe3b5c26a.tar.gz",
54-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
55-
},
56-
"nixpkgs": {
57-
"branch": "master",
58-
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
59-
"homepage": null,
60-
"owner": "nh2",
61-
"repo": "nixpkgs",
62-
"rev": "a2d7e9b875e8ba7fd15b989cf2d80be4e183dc72",
63-
"sha256": "1hnmp637r99qd6g0sbx4w3za564gbzwl5c4z0x7fvn7kfi2jp1hx",
64-
"type": "tarball",
65-
"url": "https://github.com/nh2/nixpkgs/archive/a2d7e9b875e8ba7fd15b989cf2d80be4e183dc72.tar.gz",
66-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
67-
},
68-
"port-utils": {
69-
"sha256": "1vfmm8mmkmfffgza64h6qz4ibniibqdr8mj452ikp1xmvv6m8qm9",
70-
"type": "tarball",
71-
"url": "http://hackage.haskell.org/package/port-utils-0.2.1.0/port-utils-0.2.1.0.tar.gz",
72-
"url_template": "http://hackage.haskell.org/package/port-utils-0.2.1.0/port-utils-0.2.1.0.tar.gz"
73-
},
74-
"static-haskell-nix": {
75-
"branch": "master",
76-
"description": "easily build most Haskell programs into fully static Linux executables",
77-
"homepage": "",
78-
"owner": "nh2",
79-
"repo": "static-haskell-nix",
80-
"rev": "8d004d7ced9da947c785b93b4011f39367442339",
81-
"sha256": "0nw4g23c5rs0cvaar2phpr60zim9r0qycznpifi8d8k85y4r3bdd",
82-
"type": "tarball",
83-
"url": "https://github.com/nh2/static-haskell-nix/archive/8d004d7ced9da947c785b93b4011f39367442339.tar.gz",
84-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
85-
},
86-
"wai-lambda": {
87-
"branch": "master",
88-
"description": "Haskell Webapps on AWS Lambda",
89-
"owner": "deckgo",
90-
"repo": "wai-lambda",
91-
"rev": "7f139047addff89e9d30e55b7eebb07c0e846456",
92-
"sha256": "0qqi6wlg8v35dkh6gh9mrj0kb9kpzrz2pc7k0dykk2ahcj6m22k6",
93-
"type": "tarball",
94-
"url": "https://github.com/deckgo/wai-lambda/archive/7f139047addff89e9d30e55b7eebb07c0e846456.tar.gz",
95-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
96-
}
2+
"deckdeckgo-starter": {
3+
"branch": "master",
4+
"description": "The Progressive Web App alternative for simple presentations",
5+
"homepage": "https://deckdeckgo.com",
6+
"owner": "deckgo",
7+
"repo": "studio-kit",
8+
"rev": "f250a5dc6806f3ea2332dc14f1b0554b0dcb68aa",
9+
"sha256": "1g0ndd4adba80cx0mcm7bgmf0z2zsahwjk78pqq6q1mwydxrypbm",
10+
"type": "tarball",
11+
"url": "https://github.com/deckgo/studio-kit/archive/f250a5dc6806f3ea2332dc14f1b0554b0dcb68aa.tar.gz",
12+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
13+
},
14+
"elasticmq": {
15+
"sha256": "1cp2pmkc6gx7gr6109jlcphlky5rr6s1wj528r6hyhzdc01sjhhz",
16+
"type": "file",
17+
"url": "https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.14.6.jar",
18+
"url_template": "https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.14.6.jar"
19+
},
20+
"hs-jose": {
21+
"branch": "master",
22+
"description": "Haskell JOSE and JWT library",
23+
"homepage": "http://hackage.haskell.org/package/jose",
24+
"owner": "frasertweedale",
25+
"repo": "hs-jose",
26+
"rev": "71274bf64c0600c1d877152173a08a5bff7adf4d",
27+
"sha256": "0ah189vika1s0jk8f17mn77gilkw24vbs6xlggxw1qj926i6c4pk",
28+
"type": "tarball",
29+
"url": "https://github.com/frasertweedale/hs-jose/archive/71274bf64c0600c1d877152173a08a5bff7adf4d.tar.gz",
30+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
31+
},
32+
"napalm": {
33+
"branch": "master",
34+
"description": "Support for building npm packages in Nix and lightweight npm registry",
35+
"homepage": "",
36+
"owner": "nmattia",
37+
"repo": "napalm",
38+
"rev": "4db4f253c78cfa8d8e8defb45dfe25e04409142a",
39+
"sha256": "1rzj7a3r6wcsfjlzs5fj1min3rk8d8k9g9v00kmygdl1696mnkrb",
40+
"type": "tarball",
41+
"url": "https://github.com/nmattia/napalm/archive/4db4f253c78cfa8d8e8defb45dfe25e04409142a.tar.gz",
42+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
43+
},
44+
"niv": {
45+
"branch": "master",
46+
"description": "Easy dependency management for Nix projects",
47+
"homepage": "https://github.com/nmattia/niv",
48+
"owner": "nmattia",
49+
"repo": "niv",
50+
"rev": "c2698b0780b783880e0b1a520723948fe3b5c26a",
51+
"sha256": "0v68x0h9si6kjqg5fcjrgsbsf4x18m32a786yvjmrdkrki9qwmcq",
52+
"type": "tarball",
53+
"url": "https://github.com/nmattia/niv/archive/c2698b0780b783880e0b1a520723948fe3b5c26a.tar.gz",
54+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
55+
},
56+
"nixpkgs": {
57+
"branch": "master",
58+
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
59+
"homepage": null,
60+
"owner": "nh2",
61+
"repo": "nixpkgs",
62+
"rev": "a2d7e9b875e8ba7fd15b989cf2d80be4e183dc72",
63+
"sha256": "1hnmp637r99qd6g0sbx4w3za564gbzwl5c4z0x7fvn7kfi2jp1hx",
64+
"type": "tarball",
65+
"url": "https://github.com/nh2/nixpkgs/archive/a2d7e9b875e8ba7fd15b989cf2d80be4e183dc72.tar.gz",
66+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
67+
},
68+
"port-utils": {
69+
"sha256": "1vfmm8mmkmfffgza64h6qz4ibniibqdr8mj452ikp1xmvv6m8qm9",
70+
"type": "tarball",
71+
"url": "http://hackage.haskell.org/package/port-utils-0.2.1.0/port-utils-0.2.1.0.tar.gz",
72+
"url_template": "http://hackage.haskell.org/package/port-utils-0.2.1.0/port-utils-0.2.1.0.tar.gz"
73+
},
74+
"static-haskell-nix": {
75+
"branch": "master",
76+
"description": "easily build most Haskell programs into fully static Linux executables",
77+
"homepage": "",
78+
"owner": "nh2",
79+
"repo": "static-haskell-nix",
80+
"rev": "8d004d7ced9da947c785b93b4011f39367442339",
81+
"sha256": "0nw4g23c5rs0cvaar2phpr60zim9r0qycznpifi8d8k85y4r3bdd",
82+
"type": "tarball",
83+
"url": "https://github.com/nh2/static-haskell-nix/archive/8d004d7ced9da947c785b93b4011f39367442339.tar.gz",
84+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
85+
},
86+
"wai-lambda": {
87+
"branch": "master",
88+
"description": "Haskell Webapps on AWS Lambda",
89+
"owner": "deckgo",
90+
"repo": "wai-lambda",
91+
"rev": "7f139047addff89e9d30e55b7eebb07c0e846456",
92+
"sha256": "0qqi6wlg8v35dkh6gh9mrj0kb9kpzrz2pc7k0dykk2ahcj6m22k6",
93+
"type": "tarball",
94+
"url": "https://github.com/deckgo/wai-lambda/archive/7f139047addff89e9d30e55b7eebb07c0e846456.tar.gz",
95+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
96+
}
9797
}

0 commit comments

Comments
 (0)