How does it work?
It’s using hinotify in an another thread, to add and delete images from the database, each time a file is moved in/out, deleted or created in the images directory.
In the folder:
cabal update && cabal-dev -fproduction install
Set the image directory (imgdir variable) in the HinotifyHandler.hs file.