packages feed

regions

Provides the region monad for safely opening and working with scarce resources.

view on Hackage

This package provides the region monad transformer. Scarce resources like files, memory pointers or USB devices for example can be opened in a region. When the region terminates, all opened resources will be automatically closed. The main advantage of regions is that the opened resources can not be returned from the region which ensures no I/O with closed resources is possible. The primary technique used in this package is called \"Lightweight monadic regions\" which was invented by Oleg Kiselyov and Chung-chieh Shan. See: <http://okmij.org/ftp/Haskell/regions.html#light-weight> Also see the @regions-mtl@ and @regions-monadstf@ packages which provide instances for the classes in the respected monad transformers packages. For an example on how to use this library see the @safer-file-handles@, @usb-safe@ or @regional-pointers@ packages.
versionuploadeduploaderchanges
0.112011-09-23 10:09 UTCBasVanDijk+42/−22 lines, 4 filesPVP ok
0.102011-09-22 21:54 UTCBasVanDijk+254/−23 lines, 9 filesdep ~basePVP ok
0.92011-03-09 12:20 UTCBasVanDijk+123/−275 lines, 7 filesdep +monad-controldep −monad-peelPVP ok
0.8.12011-01-17 22:04 UTCBasVanDijk+73/−36 lines, 4 filesPVP: major bump suggested
0.82010-11-06 15:56 UTCBasVanDijk+236/−214 lines, 7 filesdep +monad-peeldep −MonadCatchIO-transformersdep ~basePVP ok
0.7.0.12010-09-11 14:17 UTCBasVanDijk+3/−3 lines, 2 filesPVP ok
0.72010-09-01 20:11 UTCBasVanDijk+52/−13 lines, 3 filesPVP ok
0.6.0.12010-06-16 13:45 UTCBasVanDijk+1/−5 lines, 1 filesPVP ok
0.62010-06-16 09:11 UTCBasVanDijk+173/−322 lines, 9 filesPVP ok
0.52010-05-02 20:24 UTCBasVanDijk+75/−137 lines, 4 filesdep ~MonadCatchIO-transformersdep ~base-unicode-symbolsdep ~transformersPVP ok
0.42010-02-04 10:17 UTCBasVanDijk+212/−94 lines, 6 filesdep ~MonadCatchIO-transformersPVP ok
0.32010-01-23 14:25 UTCBasVanDijk+129/−123 lines, 4 filesPVP ok
0.22010-01-07 14:14 UTCBasVanDijk+128/−94 lines, 4 filesPVP ok
0.1.0.12009-12-23 13:42 UTCBasVanDijk+137/−37 lines, 2 filesdep +base-unicode-symbolsdep −unicode-symbolsdep ~basePVP: major bump suggested
0.12009-12-21 09:46 UTCBasVanDijk+592/−0 lines, 5 filesdep +MonadCatchIO-transformersdep +basedep +transformerssetup-changed

Dependencies of regions-0.11

base >=4 && <4.5 4.4.1.0 → 4.22.1.0 newer than bounds
2026-12-01 12:38 UTC4.22.1.0 newer than bounds+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0 newer than bounds+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0 newer than bounds+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0 newer than bounds+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0 newer than bounds+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

base-unicode-symbols >=0.1.1 && <0.3 0.2.4.1 → 0.2.4.2
2019-07-10 11:35 UTC0.2.4.2+2/−1 lines, 2 filesPVP: minor bump suggested
2019-07-10 11:23 UTC0.2.4.1+2/−2 lines, 2 filesPVP ok
2019-07-10 11:11 UTC0.2.4+28/−17 lines, 4 filesPVP ok
2018-11-20 11:22 UTC0.2.3+903/−860 lines, 29 filesdep ~basePVP: major bump suggested
2012-07-06 11:18 UTC0.2.2.4+11/−11 lines, 3 filesdep ~basePVP: major bump suggested

showing 5 of 22 versions

monad-control >=0.2 && <0.3 0.2.0.3 → 1.0.3.1 newer than bounds
2021-08-02 10:16 UTC1.0.3.1 newer than bounds+25/−13 lines, 3 filesdep ~transformersPVP ok
2021-07-26 20:03 UTC1.0.3 newer than bounds+6/−2 lines, 2 filesdep ~base
2021-07-26 19:56 UTC1.0.2.4 newer than bounds+912/−894 lines, 5 filesdep ~basedep ~transformers-compatsetup-changednew-uploader
2018-02-26 08:14 UTC1.0.2.3 newer than bounds+10/−3 lines, 3 filesdep ~transformers-compatPVP: major bump suggested
2017-08-06 15:12 UTC1.0.2.2 newer than bounds+201/−29 lines, 4 filesPVP ok

showing 5 of 32 versions

transformers >=0.2 && <0.3 0.2.2.1 → 0.6.3.0 newer than bounds
2026-01-12 12:42 UTC0.6.3.0 newer than bounds+28/−1 lines, 4 filesPVP: major bump suggested
2025-04-06 22:39 UTC0.6.2.0 newer than bounds+41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested
2024-09-25 11:37 UTC0.6.1.2 newer than bounds+70/−21 lines, 19 filesPVP: minor bump suggested
2023-08-01 19:13 UTC0.6.1.1 newer than bounds+281/−42 lines, 11 filesPVP ok
2023-02-04 08:15 UTC0.6.1.0 newer than bounds+64/−4 lines, 8 filesPVP ok

showing 5 of 42 versions

Reverse dependencies

9 packages depend on regions; 2 have bounds that exclude 0.11

EsounD 0.2 requires regions >=0.9 && <0.10 excludes current (upper bound)
regions-monadsfd 0.3.1.3 requires regions >=0.4 && <0.8 excludes current (upper bound)
regional-pointers 0.7 requires regions >=0.11 && <0.12
regions-monadstf 0.3.1.7 requires regions >=0.4 && <0.12
regions-mtl 0.3.1.7 requires regions >=0.4 && <0.12
safer-file-handles 0.11 requires regions >=0.11 && <0.12
safer-file-handles-bytestring 0.3.0.1 requires regions >=0.9 && <0.12
safer-file-handles-text 0.2.0.2 requires regions >=0.9 && <0.12
usb-safe 0.14 requires regions >=0.11 && <0.12