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 # 0.0.0
First published version First published version

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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