| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 06:40:40 GMT
X-Served-By: cache-dfw-kdfw8210084-DFW, cache-bom-vanm7210023-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768632040.411052,VS0,VE299
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
yesod-alerts: Alert messages for the Yesod framework
yesod-alerts: Alert messages for the Yesod framework
Modules
[Index] [Quick Jump]
Downloads
- yesod-alerts-0.1.3.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.3.0 |
|---|---|
| Dependencies | alerts (>=0.1.0.0 && <0.2.0.0), base (>=4.7 && <5), blaze-html, blaze-markup, safe (>=0.3.14 && <0.4), text (>=0.11 && <2.0), yesod-core (>=1.4.32) [details] |
| License | BSD-3-Clause |
| Copyright | 2017 Daniel Campoverde |
| Author | Daniel Campoverde |
| Maintainer | alx@sillybytes.net |
| Uploaded | by alx741 at 2019-06-28T18:17:30Z |
| Category | Web |
| Home page | https://github.com/alx741/yesod-alerts#readme |
| Source repo | head: git clone https://github.com/alx741/yesod-alerts |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 2602 total (28 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2019-06-28 [all 1 reports] |
Readme for yesod-alerts-0.1.3.0
[back to package description]yesod-alerts
Alert messages for the Yesod framework
Setup
Modify your definition of defaultLayout in Foundation.hs:
defaultLayout widget = do
...
alerts <- getAlerts
...
Then Include a renderer in default-layout.hamlet
...
#{renderAlertsBootstrap3 alerts}
...
^{widget}
...
Usage
Set alerts from your handlers
getHomeR :: Handler Html
getHomeR = do
...
setAlert (Alert Error "oops")
setSuccessAlert "Yay!"
...
defautlLayout $ do
$(widgetFile "homepage")
Renderers
- Bootstrap v3
- Bootstrap v4
- Foundation v5