IO +Data.Array

module Data.Array.IO
array Data.Array.IO
Mutable boxed and unboxed arrays in the IO monad.
data IOArray i e :: * -> * -> *
array Data.Array.IO, array Data.Array.IO.Safe
An IOArray is a mutable, boxed, non-strict array in the IO monad. The type arguments are as follows: * i: the index type of the array (should be an instance of Ix) * e: the element type of the array.
package IOR
package
IOR monad is a wrapper around IO that allows region based resource management. Version 0.1
package IORefCAS
package
After GHC 7.2 a new `casMutVar#` primop became available, but was not yet exposed in Data.IORef.  This package fills that gap until such a time as Data.IORef obsoletes it. Further, in addition to exposing native Haskell CAS operations, this package contains "mockups" that imititate the same functionality using either atomicModifyIORef and unsafe pointer equality (in Data.CAS.Fake) or using foreign functions (Data.CAS.Foreign). These alternatives are useful for debugging. Note that the foreign option does not operate on IORefs and so is directly interchangeable with `Data.CAS` and `Data.CAS.Fake` only if the interface in `Data.CAS.Class` is used. Version 0.2.0.1
package IOSpec
package
This package consists of several modules, that give a pure specification of functions in the IO monad: * Test.IOSpec.Fork: a pure specification of forkIO. * Test.IOSpec.IORef: a pure specification of most functions that create and manipulate on IORefs. * Test.IOSpec.MVar: a pure specification of most functions that create and manipulate and MVars. * Test.IOSpec.STM: a pure specification of atomically and the STM monad. * Test.IOSpec.Teletype: a pure specification of getChar, putChar, and several related Prelude functions. Besides these modules containing the specifications, there are a few other important modules: * Test.IOSpec.Types: defines the IOSpec type and several amenities. * Test.IOSpec.VirtualMachine: defines a virtual machine on which to execute pure specifications. * Test.IOSpec.Surrogate: a drop-in replacement for the other modules. Import this and recompile your code once you've finished testing and debugging. There are several well-documented examples included with the source distribution. Version 0.2.5
data IOUArray i e
array Data.Array.IO, array Data.Array.IO.Safe
Mutable, unboxed, strict arrays in the IO monad. The type arguments are as follows: * i: the index type of the array (should be an instance of Ix) * e: the element type of the array. Only certain element types are supported: see Data.Array.MArray for a list of instances.
package io-capture
package
capture IO action's stdout and stderr Version 0.3
package io-choice
package
Choice for IO and lifted IO Version 0.0.5
package io-manager
package
A skeleton library to help learners of Haskell concentrate on the pure-functional aspect and let the IO be handled by the library. Version 0.1.0.1
package io-memoize
package
Transform an IO action into a similar IO action that performs the original action only once. You can choose to perform the original action in one of three ways: * lazily (might never be performed) * eagerly * concurrently (eager) Special thanks to shachaf and headprogrammingczar from #haskell irc for helping me reason about the behavior of this library. Version 1.0.0.0
package io-reactive
package
An API for generating reactive objects, as used in the TIMBER programming language. Version 0.1.1
package io-storage
package
This library allows an application to extend the 'global state' hidden inside the IO monad with semi-arbitrary data. Data is required to be Typeable. The library provides an essentially unbounded number of key-value stores indexed by strings, with each key within the stores also being a string. Version 0.3
package io-streams
package
Overview The io-streams library contains simple and easy-to-use primitives for I/O using streams. Most users will want to import the top-level convenience module System.IO.Streams, which re-exports most of the library: > import           System.IO.Streams (InputStream, OutputStream) > import qualified System.IO.Streams as Streams For first-time users, io-streams comes with an included tutorial, which can be found in the System.IO.Streams.Tutorial module. Features The io-streams user API has two basic types: InputStream a and OutputStream a, and three fundamental I/O primitives: @ -- read an item from an input stream Streams.System.IO.Streams.read :: System.IO.Streams.InputStream a -> IO (Maybe a) -- push an item back to an input stream Streams.System.IO.Streams.unRead :: a -> System.IO.Streams.InputStream a -> IO () -- write to an output stream Streams.System.IO.Streams.write :: Maybe a -> System.IO.Streams.OutputStream a -> IO () @ Streams can be transformed by composition and hooked together with provided combinators: > ghci> Streams.fromList [1,2,3::Int] >>= Streams.map > (*10) >>= Streams.toList > [10,20,30] Stream composition leaves the original stream accessible: > ghci> input <- Streams.fromByteString &quot;long string&quot; > ghci> wrapped <- Streams.takeBytes 4 input > ghci> Streams.read wrapped > Just &quot;long&quot; > ghci> Streams.read wrapped > Nothing > ghci> Streams.read input > Just &quot; string&quot; Simple types and operations in the IO monad mean straightforward and simple exception handling and resource cleanup using Haskell standard library facilities like Control.Exception.bracket. io-streams comes with: * functions to use files, handles, concurrent channels, sockets, lists, vectors, and more as streams. * a variety of combinators for wrapping and transforming streams, including compression and decompression using zlib, controlling precisely how many bytes are read from or written to a stream, buffering output using bytestring builders, folds, maps, filters, zips, etc. * support for parsing from streams using attoparsec. * support for spawning processes and communicating with them using streams. ChangeLog 1.1.2.2: Allowed newest versions of the process, test-framework, and text libraries. 1.1.2.1: Fixed build error when compiled against attoparsec-0.10.0.x. 1.1.2.0: Added System.IO.Streams.Concurrent.makeChanPipe, to create a simple concurrent pipe between an InputStream/OutputStream pair. 1.1.1.0: Added System.IO.Streams.Network.socketToStreamsWithBufferSize, allowing control over the size of the receive buffers used when reading from sockets. 1.1.0.3: Fixed an inconsistent version upper bound in the test suite. 1.1.0.2: Fixed a typo in the tutorial. 1.1.0.1: A couple of Haddock markup fixes. 1.1.0.0: Reworked, simplified, and streamlined the internals of the library. Exports from System.IO.Streams.Internal relying on Sources and Sinks were deleted because they are no longer necessary: Source(..), Sink(..), defaultPushback, withDefaultPushback, nullSource, nullSink, singletonSource, simpleSource, sourceToStream, sinkToStream, generatorToSource, and consumerToSink. 1.0.2.2: Fixed a bug in which &quot;takeBytes 0&quot; was erroneously requesting input from the wrapped stream. 1.0.2.1: Fixed a compile error on GHC 7.0.x. 1.0.2.0: Added System.IO.Streams.Process (support for communicating with system processes using streams), added new functions to System.IO.Streams.Handle for converting io-streams types to System.IO.Handles. (Now you can pass streams from this library to places that expect Handles and everything will work.) 1.0.1.0: Added System.IO.Streams.Combinators.ignoreEof. 1.0.0.1: Fixed some haddock markup. Version 1.1.2.2
package ioctl
package
Package allowing type-safe I/O control Version 0.0.1
package iotransaction
package
This module provides facilities for building transactions out of IO actions in such a way that, if one IO action in a transaction throws an exception, the effects of previous actions will be undone. Version 0.1
package abcnotation
package
This package contains a Haskell representation and parser for ABC notation. ABC notation is a text-based music notation system designed to be comprehensible by both people and computers. For more information see http://abcnotation.com. Based on the 2.1 standard. Version 0.5
package accelerate-io
package
This package provides efficient conversion routines between a range of array types and Accelerate arrays. Refer to the main Accelerate package for more information: http://hackage.haskell.org/package/accelerate Version 0.14.0.0
package action-permutations
package
Sequence a set of Alternative actions in each possible order, based on &quot;Parsing Permutation Phrases&quot;, by Arthur Baars, Andres Loeh and S. Doaitse Swierstra, Haskell Workshop 2001. This is particularly useful for constructing a parser for permutations of elements. This version has a slightly different interface from the paper. Version 0.0.0.0
package adjunctions
package
Adjunctions Version 3.2.1.1
package ADPfusion
package
ADPfusion combines stream-fusion (using the stream interface provided by the vector library) and type-level programming to provide highly efficient dynamic programming combinators. From the programmers' viewpoint, ADPfusion behaves very much like the original ADP implementation http://bibiserv.techfak.uni-bielefeld.de/adp/ developed by Robert Giegerich and colleagues, though both combinator semantics and backtracking are different. The library internals, however, are designed not only to speed up ADP by a large margin (which this library does), but also to provide further runtime improvements by allowing the programmer to switch over to other kinds of data structures with better time and space behaviour. Most importantly, dynamic programming tables can be strict, removing indirections present in lazy, boxed tables. As a simple benchmark, consider the Nussinov78 algorithm which translates to three nested for loops (for C). In the figure, four different approaches are compared using inputs with size 100 characters to 1000 characters in increments of 100 characters. C is an implementation (.C directory) in C using &quot;gcc -O3&quot;. ADP is the original ADP approach (see link above), while GAPC uses the GAP language (http://gapc.eu/). Performance comparison figure: http://www.tbi.univie.ac.at/~choener/adpfusion/gaplike-nussinov-runtime.jpg Please note that actual performance will depend much on table layout and data structures accessed during calculations, but in general performance is very good: close to C and better than other high-level approaches (that I know of). Even complex ADP code tends to be completely optimized to loops that use only unboxed variables (Int# and others, indexIntArray# and others). Completely novel (compared to ADP), is the idea of allowing efficient monadic combinators. This facilitates writing code that performs backtracking, or samples structures stochastically, among others things. Two algorithms from the realm of computational biology are provided as examples on how to write dynamic programming algorithms using this library: http://hackage.haskell.org/package/Nussinov78 and http://hackage.haskell.org/package/RNAFold. Version 0.2.0.4

Show more results