packages feed

prim-spoon-0.1.0: prim-spoon.cabal

name:           prim-spoon
version:        0.1.0
license:        BSD3
license-file:   LICENSE
author:         Michael Klein
maintainer:     Michael Klein <lambdamichael@gmail.com>
homepage:       https://github.com/michaeljklein/prim-spoon
stability:      experimental
category:       Error handling
synopsis:       Catch errors thrown from pure computations using primops.
copyright:      2016 Michael Klein, portions also licensed to: 2009 Matt Morrow & Dan Peebles, 2013 Liyang HU
description:    Takes an error-throwing expression and puts it back in the Maybe it belongs in, but with primops.
build-type:     Simple
cabal-version:  >= 1.10
extra-source-files:  README.md

library
  hs-source-dirs:      src
  build-depends:       base >= 4.7 && < 5
                     , ghc-prim >= 0.3.1.0
                     , spoon >= 0.3
  exposed-modules:     Control.Spoon.Prim
  ghc-options:         -Wall -funbox-strict-fields
  default-language:    Haskell2010
  default-extensions:  MagicHash
                     , RankNTypes
                     , ScopedTypeVariables
                     , UnboxedTuples
                     , Unsafe

benchmark prim-spoon-bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Main.hs
  build-depends:       base
                     , criterion >= 1.1.0.0 && < 1.2.0.0
                     , ghc-prim >= 0.3.1.0
                     , prim-spoon
                     , spoon >= 0.3.1
  other-modules:       Bench.Control.Spoon.Prim
  ghc-options:         -Wall -funbox-strict-fields
  default-language:    Haskell2010
  default-extensions:  MagicHash
                     , RankNTypes
                     , ScopedTypeVariables
                     , UnboxedTuples
                     , Unsafe

test-suite prim-spoon-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , HUnit >= 1.2.5.2
                     , spoon >= 0.3.1
                     , prim-spoon
                     , QuickCheck >= 2.7.6
  other-modules:       Test.Control.Spoon.Prim
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/michaeljklein/prim-spoon.git