vary-0.1.0.2: vary.cabal
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
name: vary
version: 0.1.0.2
synopsis: Vary: Friendly and fast polymorphic variants (open unions/coproducts/extensible sums)
description: Vary: Friendly and fast Variant types for Haskell
.
Just like tuples are a version of a user-defined product type (only without the field names), a Variant is a version of a user-defined sum type (but without the field names).
.
Variant types are the generalization of `Either`. Especially in the situation where you want to handle multiple errors, Variant types are a great abstraction to use.
.
Variant types are sometimes called '_polymorphic_ variants' for disambiguation. They are also commonly known as (open) unions, coproducts or extensible sums.
.
Please see the full README below or on GitHub at <https://github.com/qqwy/haskell-vary#readme>
category: Data, Data Structures, Error Handling
homepage: https://github.com/qqwy/haskell-vary#readme
bug-reports: https://github.com/qqwy/haskell-vary/issues
author: Marten Wijnja (Qqwy)
maintainer: qqwy@gmx.com
copyright: 2024 Marten Wijnja (Qqwy)
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/qqwy/haskell-vary
library
exposed-modules:
Vary
Vary.Utils
Vary.VEither
other-modules:
Vary.Core
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.7 && <5
, deepseq >=1.4.0 && <1.5
default-language: Haskell2010
test-suite doctests
type: exitcode-stdio-1.0
main-is: doctests.hs
other-modules:
Paths_vary
hs-source-dirs:
test/doctest
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, deepseq >=1.4.0 && <1.5
, doctest-parallel
, vary
default-language: Haskell2010
test-suite readme
type: exitcode-stdio-1.0
main-is: test/README.lhs
other-modules:
Paths_vary
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -pgmL markdown-unlit -Wno-deferred-type-errors -Wno-missing-signatures -Wno-unused-matches -Wno-redundant-constraints -Wno-unused-imports -Wno-missing-export-lists
build-tool-depends:
markdown-unlit:markdown-unlit
build-depends:
base >=4.7 && <5
, deepseq >=1.4.0 && <1.5
, hspec
, markdown-unlit
, should-not-typecheck
, vary
default-language: Haskell2010
test-suite vary-test
type: exitcode-stdio-1.0
main-is: spec.hs
other-modules:
Paths_vary
hs-source-dirs:
test/spec
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, deepseq >=1.4.0 && <1.5
, vary
default-language: Haskell2010