Testing Hydra

Install PostgreSQL. On NixOS, you need to configure configuration.nix with authentication = "local ..." and switch to root before running psql postgres.

Then follow the instructions here to get Hydra (add channel, install, set environment variables etc).

hydra-create-user to make an admin role, then run sudo hydra-server. Go to http://localhost:3000.

 
0
Kudos
 
0
Kudos

Now read this

Lucid: Conditional rendering

I have a form written in Lucid and I need to add a prompt to the user based on some condition: someForm :: Bool -> Html () someForm condition = body_ $ ... renderIfCondition where renderIfCondition | condition = div_ $ p_ [] "Some... Continue →