packages feed

cabal-install-parsers 0.1 → 0.2

raw patch · 3 files changed

+14/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Cabal.Config: newtype Repo
+ Cabal.Config: [repoSecure] :: Repo -> Bool
+ Cabal.Config: data Repo
- Cabal.Config: Repo :: URI -> Repo
+ Cabal.Config: Repo :: URI -> Bool -> Repo

Files

+ Changelog.md view
@@ -0,0 +1,3 @@+## 0.2++Add `repoSecure` field to `Repo` in `Cabal.Config`.
cabal-install-parsers.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.2 name:               cabal-install-parsers-version:            0.1+version:            0.2 synopsis:           Utilities to work with cabal-install files description:   @cabal-install-parsers@ provides parsers for @cabal-install@ files:@@ -22,6 +22,7 @@ build-type:         Simple tested-with:        GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.1 extra-source-files:+  Changelog.md   fixtures/*.project   fixtures/*.golden 
src/Cabal/Config.hs view
@@ -93,10 +93,11 @@  -- | Repository. ----- missing @secure@, @root-keys@, @key-threshold@ which we don't need now.+-- missing @root-keys@, @key-threshold@ which we don't need now. ---newtype Repo = Repo-    { repoURL :: URI+data Repo = Repo+    { repoURL    :: URI+    , repoSecure :: Bool -- ^ @since 0.2     }   deriving (Show) @@ -155,7 +156,8 @@  repoGrammar :: C.ParsecFieldGrammar Repo Repo repoGrammar = Repo-    <$> C.uniqueFieldAla "url" WrapURI repoURLL+    <$> C.uniqueFieldAla  "url"    WrapURI repoURLL+    <*> C.booleanFieldDef "secure"         repoSecureL False  ------------------------------------------------------------------------------- -- Resolving@@ -189,3 +191,6 @@  repoURLL :: Functor f => LensLike' f Repo URI repoURLL f s = f (repoURL s) <&> \x -> s { repoURL = x }++repoSecureL :: Functor f => LensLike' f Repo Bool+repoSecureL f s = f (repoSecure s) <&> \x -> s { repoSecure = x }