This will save.. five comparisons.. occasionally? But it's a more transparent design, and it seems more charitable to group interface changes together.
17 lines
542 B
Markdown
17 lines
542 B
Markdown
[https-everywhere-rules](https://github.com/fmap/https-everywhere-rules)
|
|
========================================================================
|
|
|
|
Haskell package providing high-level access to [HTTPS Everywhere][1]
|
|
rulesets. It aims to make it easier to specify: "use secure HTTP
|
|
connections when possible."
|
|
|
|
[1]: https://www.eff.org/https-everywhere
|
|
|
|
```haskell
|
|
λ: :m + Data.HTTPSEverywhere.Rules Network.URI
|
|
λ: rules <- getRulesets
|
|
λ: let Just it = parseURI "http://httpsnow.org"
|
|
λ: rewriteURL rules it
|
|
Just https://httpsnow.org
|
|
```
|