pretty-sop 0.2.0.0 → 0.2.0.1
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Generics.SOP.PrettyVal: gprettyVal :: (Generic a, HasDatatypeInfo a, All2 PrettyVal (Code a)) => a -> Value
+ Generics.SOP.PrettyVal: gprettyVal :: forall a. (Generic a, HasDatatypeInfo a, All2 PrettyVal (Code a)) => a -> Value
Files
- pretty-sop.cabal +4/−4
- src/Generics/SOP/PrettyVal.hs +2/−0
pretty-sop.cabal view
@@ -1,5 +1,5 @@ name: pretty-sop-version: 0.2.0.0+version: 0.2.0.1 synopsis: A generic pretty-printer using generics-sop description: This library contains a generic implementation of the 'prettyVal'@@ -18,7 +18,7 @@ category: Generics build-type: Simple cabal-version: >=1.10-tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2+tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1, GHC == 8.0.2, GHC == 8.1.* source-repository head type: git@@ -32,7 +32,8 @@ hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall- default-extensions: ScopedTypeVariables+ default-extensions: CPP+ ScopedTypeVariables TypeFamilies RankNTypes TypeOperators@@ -56,4 +57,3 @@ PolyKinds UndecidableInstances TemplateHaskell- CPP
src/Generics/SOP/PrettyVal.hs view
@@ -44,7 +44,9 @@ where aux :: forall x y. NP (K Value) '[x, y] -> Value aux (K x :* K y :* Nil) = InfixCons x [(n, y)]+#if __GLASGOW_HASKELL__ < 800 aux _ = error "inaccessible"+#endif prettyValFor (Record n fs) = K . Rec n . hcollapse . hcliftA2 p aux fs where aux :: forall a. PrettyVal a => FieldInfo a -> I a -> K (Name, Value) a