Domain authentication library in Haskell