packages feed

stack-prism 0.1.6 → 0.1.7

raw patch · 2 files changed

+9/−5 lines, 2 filesdep ~profunctorsdep ~template-haskell

Dependency ranges changed: profunctors, template-haskell

Files

stack-prism.cabal view
@@ -1,5 +1,5 @@ Name:           stack-prism-Version:        0.1.6+Version:        0.1.7 Synopsis:       Stack prisms Description:    Haskell lens prisms that use stack types @@ -16,7 +16,7 @@   Cabal-Version:  >= 1.8-Tested-With:    GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1+Tested-With:    GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.3 Build-type:     Simple  Source-Repository head@@ -32,7 +32,7 @@                     profunctors >= 4.0 && < 5.3,                     tagged >= 0.4.4 && < 1,                     transformers >= 0.2 && < 0.6,-                    template-haskell >= 2.9 && < 2.12+                    template-haskell >= 2.9 && < 2.14  Test-Suite tests   Type:             exitcode-stdio-1.0@@ -42,4 +42,4 @@                     TestTH   Build-Depends:    base >= 3.0 && < 5,                     stack-prism,-                    template-haskell >= 2.9 && < 2.12+                    template-haskell >= 2.9 && < 2.14
tests/TestGeneric.hs view
@@ -3,7 +3,9 @@  module TestGeneric where +{- import Data.StackPrism.Generic+-}  import GHC.Generics @@ -21,6 +23,7 @@ data Coords = Coords { lat :: Float, lng :: Float }   deriving (Eq, Show, Generic) +{- -- The types in the first type parameter match those of the corresponding constructor's fields. person :: StackPrism (String :- Gender :- Int :- Coords :- t) (Person :- t) male   :: StackPrism t (Gender :- t)@@ -37,4 +40,5 @@  nil  :: StackPrism              t  ([a] :- t) cons :: StackPrism (a :- [a] :- t) ([a] :- t)-PrismList (P nil :& P cons) = mkPrismList :: StackPrisms [a] +PrismList (P nil :& P cons) = mkPrismList :: StackPrisms [a]+-}