interruptible.cabal 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. -- Initial interruptible.cabal generated by cabal init. For further
  2. -- documentation, see http://haskell.org/cabal/users-guide/
  3. name: interruptible
  4. version: 0.1.0.0
  5. synopsis: Monad transformers that can be run and resumed later, conserving their context.
  6. description:
  7. Given an inner monad and a transformer:
  8. > (Monad m, MonadTrans t)
  9. If t is an interruptible transformer, it becomes possible to intercalate executions
  10. on the t context with executions over the inner monad m by breaking the execution
  11. on t and resuming it later.
  12. .
  13. Interruptible monads implement the @runI@ function so that, given 'f :: a -> t m b' and
  14. 'g :: b -> t m c', 'resume (f >>= g)' is equivalent to '\x -> resume f x >>= resume g'.
  15. .
  16. That makes it possible to intercalate the execution of different monads, and even to
  17. return a monadic context for another function to resume it.
  18. homepage: https://sealgram.com/git/haskell/interruptible/
  19. license: BSD3
  20. license-file: LICENSE
  21. author: Marcos Dumay de Medeiros
  22. maintainer: marcos@marcosdumay.com
  23. --copyright:
  24. category: Control
  25. build-type: Simple
  26. -- extra-source-files:
  27. cabal-version: >=1.10
  28. source-repository head
  29. type: git
  30. location: https://sealgram.com/git/haskell/interruptible/
  31. branch: master
  32. source-repository this
  33. type: git
  34. location: https://sealgram.com/git/haskell/interruptible/
  35. tag: 0.1.0.0
  36. library
  37. exposed-modules:
  38. Control.Monad.Trans.Interruptible
  39. Control.Monad.Trans.SafeIO
  40. other-modules: Control.Monad.Trans.Interruptible.Class
  41. other-extensions: TypeFamilies
  42. build-depends:
  43. base >=4.7 && <4.9,
  44. transformers,
  45. monad-control,
  46. lifted-base,
  47. either
  48. hs-source-dirs: src
  49. default-language: Haskell2010
  50. Test-suite all
  51. type: detailed-0.9
  52. test-module: Test
  53. hs-source-dirs:
  54. test
  55. build-depends:
  56. base >=4.7 && <5.0,
  57. Cabal >= 1.9.2,
  58. either,
  59. transformers,
  60. interruptible
  61. ghc-options: -Wall -fno-warn-unused-do-bind -fwarn-incomplete-patterns -threaded
  62. default-language: Haskell2010