packages feed

unpacked-validation-0.1.0.0: unpacked-validation.cabal

--------------------------------------------------------------------------------

name:                unpacked-validation
version:             0.1.0.0
synopsis:            An unpacked validation data type
description:
   The 'Validation' type and associated operations.
   .
   This library is intended to be a drop-in replacement for /Data.Valiation/. To shave off pointer chasing, it uses -XUnboxedSums to represent the 'Validation' type as two machine words that are contiguous in memory, without loss of expressiveness that 'Validation' provides.
   .
   This library provides pattern synonyms Failure and Success, which allow users to pattern match on an Unpacked Validation in a familiar way.
   .
   Functions are also provided for converting an Unpacked Validation to the validation library's These, and vice versa.
   .
   This library is in alpha, and the internals are likely to change.
homepage:            https://github.com/chessai/unpacked-validation
license:             BSD3
license-file:        LICENSE
author:              chessai
maintainer:          chessai1996@gmail.com
copyright:           Copyright © 2018 chessai
category:            Development
build-type:          Simple
cabal-version:       >=1.10

--------------------------------------------------------------------------------

library
  hs-source-dirs:      src
  exposed-modules:     Data.Validation.Unpacked
  build-depends:       base >= 4.10 && < 5
                     , deepseq 
                     , ghc-prim
                     , unpacked-either
                     , validation
  default-language:    Haskell2010

-------------------------------------------------------------------------------

test-suite unpacked-validation-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Main.hs
  build-depends:       base
                     , unpacked-validation
                     , QuickCheck
                     , quickcheck-classes
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -O2
  default-language:    Haskell2010

-------------------------------------------------------------------------------

source-repository head
  type:     git
  location: https://github.com/chessai/unpacked-validation

--------------------------------------------------------------------------------