Provide additional instances

This commit is contained in:
Gregor Kleen 2018-12-17 13:32:32 +01:00
parent 41a2b95e7b
commit 534599dbe5
8 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,7 @@
# 1.0.0
Provide additional instances
# 0.0.0
First published version

View File

@ -25,7 +25,7 @@ ghc-options:
dependencies:
- base >=4.9 && <5
- cryptoids-types >=0.0.0 && <0.1
- cryptoids-types >=0.0.0 && <1.1
- exceptions >=0.8.3 && <0.11
library:

View File

@ -1,6 +1,6 @@
name: cryptoids-types
synopsis: Shared types for encrypting internal object identifiers before exposure
version: 0.0.0
version: 1.0.0
license: BSD3
license-file: LICENSE
author: Gregor Kleen <aethoago@141.li>
@ -26,6 +26,9 @@ dependencies:
- binary >=0.8.3 && <0.11
- path-pieces >=0.2.1 && <0.3
- http-api-data >=0.3.7 && <0.4
- aeson >=1.2.4.0 && <1.3
- deepseq >=1.4.3.0 && <1.5
- hashable >=1.2.6.1 && <1.3
library:
source-dirs: src

View File

@ -13,10 +13,16 @@ import Foreign.Storable (Storable)
import Web.PathPieces (PathPiece)
import Web.HttpApiData (ToHttpApiData, FromHttpApiData)
import Control.DeepSeq (NFData)
import Data.Aeson (ToJSON, ToJSONKey, FromJSON, FromJSONKey)
import Data.Hashable (Hashable)
newtype CryptoID (namespace :: Symbol) a = CryptoID { ciphertext :: a }
deriving ( Eq, Ord
, Read, Show
, Binary, Storable
, Binary, Storable, NFData, Hashable
, Data, Typeable, Generic
, PathPiece, ToHttpApiData, FromHttpApiData
, ToJSON, ToJSONKey, FromJSON, FromJSONKey
)

View File

@ -25,7 +25,7 @@ ghc-options:
- -fno-warn-name-shadowing
dependencies:
- base >=4.9 && <5
- cryptoids-types >=0.0 && <0.1
- cryptoids-types >=0.0 && <1.1
- cryptoids-class >=0.0 && <0.1
- cryptonite >=0.23 && <0.26
- bytestring >=0.10.8 && <0.11

View File

@ -30,7 +30,7 @@ ghc-options:
- -fno-warn-name-shadowing
dependencies:
- base >=4.9 && <5
- cryptoids-types >=0.0.0 && <0.1
- cryptoids-types >=0.0.0 && <1.1
- cryptoids-class >=0.0.0 && <0.1
- cryptoids >=0.5 && <0.6
- filepath >=1.4.1 && <1.5

View File

@ -15,7 +15,7 @@
# resolver:
# name: custom-snapshot
# location: "./custom-snapshot.yaml"
resolver: lts-12.2
resolver: lts-12.23
#resolver: nightly-2018-02-24
# User packages to be built.

View File

@ -30,7 +30,7 @@ ghc-options:
- -fno-warn-name-shadowing
dependencies:
- base >=4.9 && <5
- cryptoids-types >=0.0.0 && <0.1
- cryptoids-types >=0.0.0 && <1.1
- cryptoids-class >=0.0.0 && <0.1
- cryptoids >=0.5 && <0.6
- uuid >=1.3.13 && <1.4