microlens-th 0.2.1.2 → 0.2.1.3
raw patch · 2 files changed
+6/−6 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Lens.Micro.TH: instance Eq DefName
- Lens.Micro.TH: instance HasName Con
- Lens.Micro.TH: instance HasName Name
- Lens.Micro.TH: instance HasName TyVarBndr
- Lens.Micro.TH: instance HasTypeVars Con
- Lens.Micro.TH: instance HasTypeVars Name
- Lens.Micro.TH: instance HasTypeVars Pred
- Lens.Micro.TH: instance HasTypeVars TyVarBndr
- Lens.Micro.TH: instance HasTypeVars Type
- Lens.Micro.TH: instance HasTypeVars t => HasTypeVars (Maybe t)
- Lens.Micro.TH: instance HasTypeVars t => HasTypeVars [t]
- Lens.Micro.TH: instance Ord DefName
- Lens.Micro.TH: instance Show DefName
+ Lens.Micro.TH: instance GHC.Classes.Eq Lens.Micro.TH.DefName
+ Lens.Micro.TH: instance GHC.Classes.Ord Lens.Micro.TH.DefName
+ Lens.Micro.TH: instance GHC.Show.Show Lens.Micro.TH.DefName
+ Lens.Micro.TH: instance Lens.Micro.TH.HasName Language.Haskell.TH.Syntax.Con
+ Lens.Micro.TH: instance Lens.Micro.TH.HasName Language.Haskell.TH.Syntax.Name
+ Lens.Micro.TH: instance Lens.Micro.TH.HasName Language.Haskell.TH.Syntax.TyVarBndr
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars Language.Haskell.TH.Syntax.Con
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars Language.Haskell.TH.Syntax.Name
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars Language.Haskell.TH.Syntax.TyVarBndr
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars Language.Haskell.TH.Syntax.Type
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars t => Lens.Micro.TH.HasTypeVars (GHC.Base.Maybe t)
+ Lens.Micro.TH: instance Lens.Micro.TH.HasTypeVars t => Lens.Micro.TH.HasTypeVars [t]
Files
- microlens-th.cabal +4/−4
- src/Lens/Micro/TH.hs +2/−2
microlens-th.cabal view
@@ -1,5 +1,5 @@ name: microlens-th-version: 0.2.1.2+version: 0.2.1.3 synopsis: Automatic generation of record lenses for microlens description: This package lets you automatically generate lenses for data types; code was extracted from the lens package, and therefore generated lenses are fully compatible with ones generated by lens (and can be used both from lens and microlens).@@ -28,13 +28,13 @@ library exposed-modules: Lens.Micro.TH- -- other-modules: - -- other-extensions: + -- other-modules:+ -- other-extensions: build-depends: base >=4.5 && <5 , microlens >=0.3.2 && <0.4 , containers >=0.4.0 && <0.6 -- lens has >=2.4, but GHC 7.4 shipped with 2.7- , template-haskell >=2.7 && <2.11+ , template-haskell >=2.7 && <2.12 if flag(inlining) cpp-options: -DINLINING
src/Lens/Micro/TH.hs view
@@ -209,10 +209,10 @@ @ x :: 'Lens'' Foo Int-x f foo = (\\x' -> f {_x = x'}) '<$>' f (_x foo)+x f foo = (\\x' -> foo {_x = x'}) '<$>' f (_x foo) y :: 'Lens'' Foo Bool-y f foo = (\\y' -> f {_y = y'}) '<$>' f (_y foo)+y f foo = (\\y' -> foo {_y = y'}) '<$>' f (_y foo) @ (If you don't want a lens to be generated for some field, don't prefix it with “_”.)