Skip to content

Commit

Permalink
depend on validation-micro instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Jun 18, 2023
1 parent 5decf91 commit c3e81f4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to the

## Unreleased

## 0.6.0.0

Depend on `validation-micro` rather than `validation-selective`.

## 0.5.0.0

Add 'getE', 'postE', 'tryReq' to pattern match against HTTP exceptions
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ This library provides both the client interface and authorization infrastructure

## Status

This library is still in development, so expect missing funcionality.
This library is still in development, so expect missing functionality.
If there's anything you would like to see added, feel free to
[open an issue](https://github.com/unfoldml/ms-graph-api/issues/new).
In general, since the MS Graph API is quite large, features will be added to this library on a need basis.

## Evolution of the library

Some breaking changes might also be introduced as the library matures.

We adhere to a simplified version of the [Package Versioning Policy](https://pvp.haskell.org/): breaking changes are signaled by increasing the major version number (e.g. 0.x -> 1.x ).


## Copyright

(c) 2023-, Marco Zocca, UnfoldML AB
4 changes: 2 additions & 2 deletions ms-graph-api.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ms-graph-api
version: 0.5.0.0
version: 0.6.0.0
synopsis: Microsoft Graph API
description: Bindings to the Microsoft Graph API
homepage: https://github.com/unfoldml/ms-graph-api
Expand Down Expand Up @@ -45,7 +45,7 @@ library
, transformers >= 0.5
, unliftio
, uri-bytestring
, validation-selective
, validation-micro
, wai
, warp
ghc-options: -Wall
Expand Down
4 changes: 2 additions & 2 deletions src/Network/OAuth2/JWT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import Data.Scientific (coefficient)
import qualified Data.Text as T (Text, unpack)
-- time
import Data.Time (UTCTime(..), NominalDiffTime, getCurrentTime, fromGregorian, addUTCTime, diffUTCTime)
-- validation-selective
import Validation (Validation(..), failure, validationToEither, maybeToSuccess)
-- validation-micro
import Validation.Micro (Validation(..), failure, validationToEither, maybeToSuccess)


-- | 'sub' field
Expand Down
2 changes: 1 addition & 1 deletion src/Network/OAuth2/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import UnliftIO.STM (STM, TVar, atomically, newTVarIO, readTVar, writeTVar, modi
-- uri-bytestring
import URI.ByteString (URI)
-- validation-selective
import Validation (Validation, failure, validationToEither)
import Validation.Micro (Validation, failure, validationToEither)

import Network.OAuth2.Provider.AzureAD (OAuthCfg, azureADApp, AzureAD)
import Network.OAuth2.JWT (jwtClaims, UserSub(..), userSub, ApiAudience, apiAudience, decValidSub, decValidExp, decValidNbf, JWTException(..))
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ packages:
# forks / in-progress versions pinned to a git hash. For extra:
#
extra-deps:
- validation-selective-0.2.0.0
- validation-micro-1.0.0.0
- selective-0.6

# allow-newer: true
Expand Down

0 comments on commit c3e81f4

Please sign in to comment.