-- This file has been generated from package.yaml by hpack version 0.18.1. -- -- see: https://github.com/sol/hpack name: hspec-expectations-match version: 0.2.0.0 synopsis: An hspec expectation that asserts a value matches a pattern. description: This package provides expectations for use with @hspec@ that use Template Haskell to assert that a value matches a particular pattern. The primary expectation is 'shouldMatch': . >>> $([|Just True|] `shouldMatch` [p|Just _|]) >>> $([|Nothing|] `shouldMatch` [p|Just _|]) . Additionally, any bindings created by the pattern will be returned if the pattern is successfully matched, making it easier to extract the result of some assertion and use it to make further assertions. . >>> $([|Just True|] `shouldMatch` [p|Just x|]) True >>> $([|[1, 2]|] `shouldMatch` [p|[x, y]|]) (1, 2) category: Testing homepage: https://github.com/cjdev/hspec-expectations-match#readme bug-reports: https://github.com/cjdev/hspec-expectations-match/issues author: Alexis King maintainer: Alexis King copyright: 2017 CJ Affiliate by Conversant license: ISC license-file: LICENSE build-type: Simple cabal-version: >= 1.10 extra-source-files: CHANGELOG.md package.yaml README.md stack.yaml source-repository head type: git location: https://github.com/cjdev/hspec-expectations-match library hs-source-dirs: src default-extensions: ApplicativeDo ConstraintKinds DefaultSignatures DeriveGeneric ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses NamedFieldPuns OverloadedStrings RankNTypes ScopedTypeVariables StandaloneDeriving TupleSections TypeApplications TypeOperators ghc-options: -Wall build-depends: base >= 4.9 && < 5 , hspec-expectations >= 0.3.2 && < 1 , template-haskell >= 2.11 && < 2.13 , transformers-base < 1 exposed-modules: Test.Hspec.Expectations.Match other-modules: Paths_hspec_expectations_match default-language: Haskell2010 test-suite hspec-expectations-th-test-suite type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test default-extensions: ApplicativeDo ConstraintKinds DefaultSignatures DeriveGeneric ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses NamedFieldPuns OverloadedStrings RankNTypes ScopedTypeVariables StandaloneDeriving TupleSections TypeApplications TypeOperators ghc-options: -Wall -rtsopts -threaded -with-rtsopts=-N build-depends: base , hspec , hspec-expectations-match other-modules: Test.Hspec.Expectations.MatchSpec default-language: Haskell2010