homepage: https://github.com/psibi/wai-slack-middleware#readme
changelog-type: ''
hash: d22bb556df997993175096f589a00f3fe7308a60f4d82e5bc96680ae3a7b20e6
test-bench-deps:
  base: -any
  wai-slack-middleware: -any
maintainer: sibi@psibi.in
synopsis: A Slack middleware for WAI
changelog: ''
basic-deps:
  http-client: -any
  wai: -any
  base: ! '>=4.7 && <5'
  wai-slack-middleware: -any
  http-types: -any
  aeson: -any
all-versions:
- '0.1.0.0'
author: Sibi Prabakaran
latest: '0.1.0.0'
description-type: markdown
description: ! "# wai-slack-middleware\n\n[![Build Status](https://travis-ci.org/psibi/wai-slack-middleware.svg?branch=master)](https://travis-ci.org/psibi/wai-slack-middleware)\n\nA
  Slack middleware for [wai](https://www.stackage.org/package/wai)\nUsed for logging
  the request information into Slack from a WAI\napplication via middleware.\n\n##
  Usage:\n\nSettings are controlled via the type `SlackConfig`:\n\n``` haskell\nimport
  Network.HTTP.Types.Status\nlet slackConfig = SlackConfig {\n    webHookUrl = \"https://hooks.slack.com/services/xxx/xxxxxxxx\",\n
  \   httpManager = appHttpManager foundation,\n    logStatus = \\status -> status400
  == status\n}\n```\n\nThe above configuration will send slack notification to all
  400 http\nstatus code.\n\n### Integrating with yesod scaffolding templates\n\nGo
  to `Application.hs` and change the function `makeApplication` to\nsomething like
  this:\n\n``` haskell\nmakeApplication :: App -> IO Application\nmakeApplication
  foundation = do\n  logWare <- makeLogWare foundation\n  let slackConfig = SlackConfig
  {\n                               webHookUrl = \"https://hooks.slack.com/services/xxxx/xxxxxxx\",\n
  \                              httpManager = appHttpManager foundation,\n                               logStatus
  = \\_ -> True\n                             }\n  -- Create the WAI application and
  apply middlewares\n  appPlain <- toWaiAppPlain foundation\n  return $ slack slackConfig
  $ logWare $ defaultMiddlewaresNoLogging appPlain\n```\n\nRef:\n\n* [Slack messages
  API](https://api.slack.com/docs/messages)\n"
license-name: BSD3

Update from Hackage at 2017-04-23T17:38:20Z
Update from Hackage at 2017-04-23T17:38:20Z
