Skip to content

Commit

Permalink
Apply some hlint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
diogob committed Nov 3, 2018
1 parent 00982a1 commit 4d527b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/PostgresWebsockets/Claims.hs
Expand Up @@ -89,8 +89,8 @@ claims2map = val2map . toJSON
hs256jwk :: ByteString -> JWK
hs256jwk key =
fromKeyMaterial km
& jwkUse .~ Just Sig
& jwkAlg .~ (Just $ JWSAlg HS256)
& jwkUse ?~ Sig
& jwkAlg ?~ JWSAlg HS256
where
km = OctKeyMaterial (OctKeyParameters (JOSE.Types.Base64Octets key))

Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
@@ -1,4 +1,4 @@
resolver: lts-12.14
resolver: lts-12.16
extra-deps: []
ghc-options:
postgres-websockets: -O2 -Wall -fwarn-identities -fno-warn-redundant-constraints

0 comments on commit 4d527b0

Please sign in to comment.