Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
85ba2d0
Add safeEncode, safeEncodeLazy, safeDecode, safeDecodeLazy. These are
ddssff Jul 20, 2023
8b7743e
C-bump to signify presence of new functions
ddssff Jul 20, 2023
3ed56bd
Merge from acid-state repo
ddssff Mar 14, 2024
00329b7
Add HasCallStack constraints to methods putCopy and getCopy
ddssff Mar 14, 2024
2865a88
Remove x-revision field from cabal file
ddssff Mar 14, 2024
eea677c
More HasCallStack
ddssff Mar 14, 2024
05200a7
More HasCallStack
ddssff Mar 14, 2024
f89962d
More HasCallStack
ddssff Mar 15, 2024
eeb41eb
Add one unit test of deriveSafeCopy output
ddssff Dec 1, 2024
6a5dd7a
Add alternate versions of each of the deriveSafeCopy that take a TypeQ
ddssff Dec 1, 2024
ceaa632
Remove unnecessary variant of the worker function
ddssff Dec 1, 2024
73d8103
* Add signatures to worker functions and rename worker1, worker2
ddssff Dec 1, 2024
ccf68b4
Factor out a function withInst to deal with a change in TH 2.15.0
ddssff Dec 1, 2024
7f9d3d8
Make worker functions top level
ddssff Dec 1, 2024
59285cb
Factor out the computation of the extra SafeCopy constraints
ddssff Dec 1, 2024
14d9173
Move the extra context code into an ExtraContext class.
ddssff Dec 1, 2024
bd0147b
* Add class ExtraContext(extraContext), used to compute extra
ddssff Dec 1, 2024
2aab2ce
Merge branch derive
ddssff Dec 1, 2024
1fd114c
Fix merge
ddssff Dec 1, 2024
145dce7
Remove x-revision from cabal file
ddssff Dec 1, 2024
33ed8d5
* Retain the module name on the label and error name
ddssff Dec 1, 2024
1e8257b
Merge from derive
ddssff Dec 1, 2024
0fcfb75
* More ExtraContext instances
ddssff Dec 1, 2024
888f013
Merge ../safecopy.derive
ddssff Dec 2, 2024
6a4ff5a
Remove an unnecessary ExtraContext instance
ddssff Dec 2, 2024
207210e
Add distinguishing suffixes to some error messages
ddssff Dec 2, 2024
177ff1c
* Handle type synonyms (TySynD)
ddssff Dec 2, 2024
1532ded
Turn on TemplateHaskell and RankNTypes in .ghci
ddssff Dec 2, 2024
0298659
Use the RWS monad to collect info
ddssff Dec 2, 2024
39f4729
Separate Indexed versions
ddssff Dec 2, 2024
aef5bde
Re-arrange declarations
ddssff Dec 2, 2024
597ae84
Do type variable bindings and substitutions
ddssff Dec 3, 2024
bd48428
Merge ../safecopy.derive
ddssff Dec 3, 2024
234021b
fix imports
ddssff Dec 3, 2024
aefb8b9
* Add dependency on lens and generic-lens
ddssff Dec 3, 2024
0188f8e
Fix build error in test-suite
ddssff Dec 4, 2024
b089738
* Copy the compactStack code here from sr-errors
ddssff Dec 4, 2024
f25ca41
Reverse order of extraContext list
ddssff Dec 4, 2024
08228bf
Remove dependency on mtl and generic-lens
ddssff Dec 4, 2024
7066f5a
comments
ddssff Dec 4, 2024
2965820
Fix typo in template-haskell >= 2.15 code
ddssff Dec 4, 2024
30c3a78
Fix the template-haskell-2.15 compat function
ddssff Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ghci
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
:set -itest
:set -DDEFAULT_SIGNATURES
:set -XOverloadedStrings
:set -XTemplateHaskell
:set -XRankNTypes
:set -Wall -Wredundant-constraints
:set prompt "λ> "
16 changes: 12 additions & 4 deletions safecopy.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Name: safecopy
Version: 0.10.4.2
x-revision: 10
Version: 0.10.5
Synopsis: Binary serialization with version control.
Description: An extension to Data.Serialize with built-in version control.
Homepage: https://github.com/acid-state/safecopy
Expand Down Expand Up @@ -46,9 +45,14 @@ Library
cereal >= 0.5.3 && < 0.6,
-- cereal 0.5.3 introduced instance Monoid Put
bytestring < 0.13,
generic-data >= 0.3.0.0,
containers >= 0.3 && < 0.8,
-- Used to implement the default getCopy/putCopy implementations
generic-data >= 0.3.0.0,
-- generic-lens,
lens,
old-time < 1.2,
pretty,
syb,
template-haskell >= 2.11.0.0 && < 2.23,
text < 1.3 || >= 2.0 && < 2.2,
time >= 1.6.0.1 && < 1.15,
Expand All @@ -69,13 +73,17 @@ Test-suite instances
Main-is: instances.hs
Hs-Source-Dirs: test/
GHC-Options: -Wall -threaded -rtsopts -with-rtsopts=-N
Build-depends: base, cereal, template-haskell, safecopy,
Build-depends: base, bytestring, cereal, template-haskell, safecopy,
containers, time, array, vector, lens >= 4.7 && < 6,
lens-action
, syb
, tasty
, tasty-hunit
, tasty-quickcheck
, quickcheck-instances
, QuickCheck >= 2.8.2 && < 3
, th-orphans
Other-Modules: Types

Test-suite generic
Default-language: Haskell2010
Expand Down
6 changes: 6 additions & 0 deletions src/Data/SafeCopy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,17 @@ module Data.SafeCopy

-- * Template haskell functions
, deriveSafeCopy
, deriveSafeCopy'
, deriveSafeCopyIndexedType
, deriveSafeCopyIndexedType'
, deriveSafeCopySimple
, deriveSafeCopySimple'
, deriveSafeCopySimpleIndexedType
, deriveSafeCopySimpleIndexedType'
, deriveSafeCopyHappstackData
, deriveSafeCopyHappstackData'
, deriveSafeCopyHappstackDataIndexedType
, deriveSafeCopyHappstackDataIndexedType'

-- * Rarely used functions
, getSafeGet
Expand Down
Loading