packages feed

derivingvia-extras-0.1.0.0: derivingvia-extras.cabal

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