Aksel Stadler Kjetså

Threads by Aksel Stadler Kjetså

Discriminating unions
Hi! I'm new to Haskell and I'm really impressed by the modelling power of discriminating unions. Fex a zapier clone might do something like this Zap = new Record {id, trigger, actions} data trigger = timerTrigger | httpTriger ... et…
Add Response
Autorefresh as pubsub
I set up a websocket connection using this example https://ihp.digitallyinduced.com/Guide/websockets.html Would it be possible to track certain DB tables here as well? Like AutoRefresh is doing for actions. I want to push something over WS…
Add Response
How to check if column exist, update if it does, and insert new if it doesnt?
Say I have a Post with many to many relationship to tags. It's nice to add the tags as a comma separated list when creating a post. That means I need to update two records at the same time. That seems fine. However, i struggle with the …
Add Response