-
Notifications
You must be signed in to change notification settings - Fork 1
/
derivingvia-extras.cabal
43 lines (41 loc) · 1.06 KB
/
derivingvia-extras.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cabal-version: 2.0
name: derivingvia-extras
build-type: Simple
version: 0.1.0.0
license: BSD3
license-file: LICENSE
category: Deriving, Utils
author: Baldur Blöndal
maintainer: Baldur Blöndal
bug-reports: https://github.com/Icelandjack/derivingvia-extras/issues
synopsis: DerivingVia extras - Miscellaneous /via/ types.
extra-source-files:
CHANGELOG.md
README.md
description:
Includes various functionality to use with 'DerivingVia'.
.
> -- >> alice = User "Alice" 50 0xDEADBEAF
> -- >> bob = User "Bob" 20 0xDEADBEAF
> -- >>
> -- >> alice == bob
> -- True
> -- >> hash alice == hash bob
> -- True
> data User = User
> { name :: String
> , age :: Int
> , userID :: Integer
> }
> deriving (Eq, Ord, Hashable)
> via User `On` "userID"
source-repository head
type: git
location: https://github.com/Icelandjack/derivingvia-extras
library
exposed-modules:
Deriving.On
hs-source-dirs: src
default-language: Haskell98
build-depends:
base == 4.*, hashable -any