Skip to content

Commit

Permalink
Cleanup (#53)
Browse files Browse the repository at this point in the history
* Fix stack.yaml

(probably worked before with older stack versions?)

* Be more pedantic about charset info in html.

* Cleanup
  • Loading branch information
fisx authored Oct 9, 2019
1 parent c0bcbe8 commit ff9b9f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/SAML2/WebSSO/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ instance HasXMLRoot xml => MimeRender HTML (FormRedirect xml) where
<strong>
Note:
Since your browser does not support JavaScript, you must press the Continue button once to proceed.
<form action=#{uri} method="post">
<form action=#{uri} method="post" accept-charset="utf-8">
<input type="hidden" name="SAMLRequest" value=#{value}>
<noscript>
<input type="submit" value="Continue">
Expand Down
2 changes: 1 addition & 1 deletion src/SAML2/WebSSO/XML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class HasXML a where
default render :: HasXMLRoot a => a -> [Node]
render = (:[]) . NodeElement . renderRoot

parse :: MonadError String m => [Node] -> m a
parse :: MonadError String m => [Node] -> m a

class HasXML a => HasXMLRoot a where
renderRoot :: a -> Element
Expand Down
14 changes: 4 additions & 10 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@ resolver: lts-12.10
packages:
- .

- location:
git: https://github.com/wireapp/hsaml2
commit: 678997815033584e023205fe774d16201ccf8f62
extra-dep: true

- location:
git: https://github.com/wireapp/hspec-wai
commit: ca10d13deab929f1cc3a569abea2e7fbe35fdbe3 # https://github.com/hspec/hspec-wai/pull/49
extra-dep: true

extra-deps:
- git: https://github.com/wireapp/hsaml2
commit: 678997815033584e023205fe774d16201ccf8f62
- git: https://github.com/wireapp/hspec-wai
commit: ca10d13deab929f1cc3a569abea2e7fbe35fdbe3 # https://github.com/hspec/hspec-wai/pull/49
- invertible-hxt-0.1 # for hsaml2
- servant-multipart-0.11.2
- yaml-0.9.0
Expand Down

0 comments on commit ff9b9f4

Please sign in to comment.