{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["wip","devel"],"comment":"Region monad for safely opening and working with scarce resources","compare":null,"dependentCount":null,"description":"This package provides the region monad transformer. Scarce resources\nlike files, memory pointers or USB devices for example can be opened\nin a region. When the region terminates, all opened resources will be\nautomatically closed. The main advantage of regions is that the opened\nresources can not be returned from the region which ensures no I/O\nwith closed resources is possible.\n\nThe primary technique used in this package is called \"Lightweight\nmonadic regions\" which was invented by Oleg Kiselyov and Chung-chieh\nShan. See:\n\nhttp://okmij.org/ftp/Haskell/regions.html#light-weight\n\nAlso see the regions-monadsfd and regions-monadstf packages which\nprovide instances for the classes in the respected monads packages.\n\nFor an example on how to use this library see the safer-file-handles,\nusb-safe or regional-pointers packages.\n\nNote that if you want to open your type of scarce resource in a\nregion, the only thing you have to do is define an instance for the\nResource class (which you can find in: Control.Resource).","flavors":[],"html":"https://daemonports.org/netbsd/wip/hs-regions/","kind":"port","lastUpdate":null,"license":["modified-bsd"],"maintainer":"pho@cielonegro.org","name":"regions","newest":false,"newestVersion":null,"noVulnData":false,"origin":"wip/hs-regions","otherSystems":[],"packages":null,"pkgName":"regions-0.9","related":null,"repository":"pkgsrc-wip","requiredBy":["wip/hs-regional-pointers","wip/hs-safer-file-handles"],"requiredByCount":2,"runDepends":["devel/hs-base-unicode-symbols","devel/hs-monad-control"],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"0.9","versions":null,"vulnerabilities":null,"www":null}
