-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from unisoncomputing/cp/lts-upgrade
Upgrade unison, and the LTS
- Loading branch information
Showing
30 changed files
with
135 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,6 @@ dependencies: | |
- bytes | ||
- case-insensitive | ||
- clock | ||
- connection | ||
- containers | ||
- cookie | ||
- cryptonite | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{-# OPTIONS_GHC -Wno-orphans #-} | ||
|
||
module Share.OAuth.Orphans () where | ||
|
||
import Control.Monad.Except | ||
import Control.Monad.IO.Class | ||
import Crypto.JWT qualified as JWT | ||
import Data.Aeson (ToJSON (..), FromJSON (..)) | ||
import Data.Aeson qualified as Aeson | ||
import Data.Text qualified as Text | ||
import Network.URI (URI, parseURI) | ||
|
||
instance JWT.MonadRandom (ExceptT e IO) where | ||
getRandomBytes = liftIO . JWT.getRandomBytes | ||
|
||
instance ToJSON URI where | ||
toJSON = Aeson.String . Text.pack . show @URI | ||
|
||
instance FromJSON URI where | ||
parseJSON = Aeson.withText "URI" $ \t -> case parseURI (Text.unpack t) of | ||
Just uri -> pure uri | ||
Nothing -> fail "Invalid URI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.