Advertisement
Guest User

Untitled

a guest
Dec 29th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. startWebapp = do
  2. conn <- connect ConnectInfo
  3. {
  4. connectHost="localhost"
  5. , connectPort=5432
  6. , connectDatabase="b2b"
  7. , connectPassword="b2b"
  8. , connectUser="b2b"
  9. }
  10. let config = AppConfig{configConnection = conn}
  11. putStrLn "starting...."
  12. threadDelay (50*1000000)
  13. putStrLn "ending."
  14. -- scotty 3000 (runReaderT webapp config)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement