numerator

numerator :: Integral a => Ratio a -> a
base Data.Ratio
Extract the numerator of the ratio in reduced form: the numerator and denominator have no common factor and the denominator is positive.
package attoparsec-enumerator
package
This library allows an Attoparsec parser to receive input incrementally from an enumerator. This could be used for parsing large files, or implementing binary network protocols. > (-# LANGUAGE OverloadedStrings #-) > import Control.Applicative > import Data.Attoparsec > import Data.Attoparsec.Enumerator > import Data.Enumerator > import Data.Enumerator.Binary (enumHandle) > import Data.Enumerator.List > import System.IO > parser = string &quot;foo&quot; <|> string &quot;bar&quot; > main = do > xy <- run_ (enumHandle 1 stdin $$ do > x <- iterParser parser > y <- iterParser parser > return (x, y)) > print xy Version 0.3.1
package attoparsec-text-enumerator
package
This package has been deprecated.  You recommend that you use either attoparsec-enumerator or attoparsec-conduit packages. Version 0.2.0.1
package blaze-builder-enumerator
package
This package integrates the builders from the blaze-builder package with the enumerator package. It provides infrastructure and enumeratees for incrementally executing builders and pass the filled chunks to a bytestring iteratee. Version 0.2.0.5
package cereal-enumerator
package
package coroutine-enumerator
package
This package acts as a bidirectional bridge between two monad transformers: the Data.Enumerator.Iteratee in the enumerator package, and the Control.Monad.Coroutine.Coroutine in the monad-coroutine package. Version 0.1.1
package couchdb-enumerator
package
This package is a thin wrapper around http-enumerator to access a Couch DB Database, using the aeson package to parse and encode JSON data.  http-enumerator, aeson, and attoparsec fit togther so well that this package is mostly just a direct combination of these packages.  The single additional feature in this package is an attoparsec parser for views, which allows constant memory processing of view returns. This package is deprecated by http://hackage.haskell.org/package/couchdb-conduit Version 0.3.7
package csv-enumerator
package
CSV files are the de-facto standard in many situations involving data transfer, particularly when dealing with enterprise application or disparate database systems. While there are a number of CSV libraries in Haskell, at the time of this project's start in 2010, there wasn't one that provided all of the following: * Full flexibility in quote characters, separators, input/output * Constant space operation * Robust parsing, correctness and error resiliency * Convenient interface that supports a variety of use cases * Fast operation This library is an attempt to close these gaps. For more documentation and examples, check out the README at: http://github.com/ozataman/csv-enumerator The API is fairly well documented and I would encourage you to keep your haddocks handy. If you run into problems, just email me or holler over at #haskell. Version 0.10.2.0
package enumerator
package
Typical buffer&#x2013;based incremental I/O is based around a single loop, which reads data from some source (such as a socket or file), transforms it, and generates one or more outputs (such as a line count, HTTP responses, or modified file). Although efficient and safe, these loops are all single&#x2013;purpose; it is difficult or impossible to compose buffer&#x2013;based processing loops. Haskell&#x2019;s concept of &#x201C;lazy IO&#x201D; allows pure code to operate on data from an external source. However, lazy IO has several shortcomings. Most notably, resources such as memory and file handles can be retained for arbitrarily long periods of time, causing unpredictable performance and error conditions. Enumerators are an efficient, predictable, and safe alternative to lazy IO. Discovered by Oleg Kiselyov, they allow large datasets to be processed in near&#x2013;constant space by pure code. Although somewhat more complex to write, using enumerators instead of lazy IO produces more correct programs. This library contains an enumerator implementation for Haskell, designed to be both simple and efficient. Three core types are defined, along with numerous helper functions: * Iteratee: Data sinks, analogous to left folds. Iteratees consume a sequence of input values, and generate a single output value. Many iteratees are designed to perform side effects (such as printing to stdout), so they can also be used as monad transformers. * Enumerator: Data sources, which generate input sequences. Typical enumerators read from a file handle, socket, random number generator, or other external stream. To operate, enumerators are passed an iteratee, and provide that iteratee with input until either the iteratee has completed its computation, or EOF. * Enumeratee: Data transformers, which operate as both enumerators and iteratees. Enumeratees read from an outer enumerator, and provide the transformed data to an inner iteratee. Version 0.4.20
package enumerator-fd
package
package enumerator-tf
package
package expat-enumerator
package
package filesystem-enumerator
package
package http-enumerator
package
This package has been deprecated in favor of http-conduit (http://hackage.haskell.org/package/http-conduit), which provides a more powerful and simpler interface. The API is very similar, and migrating should not be problematic. Send concerns about this move to the maintainer (address listed above). Version 0.7.3.3
package json-enumerator
package
Provides the ability to render JSON in a streaming manner using the enumerator package. Version 0.0.1.2
package liblinear-enumerator
package
High level bindings to liblinear http://www.csie.ntu.edu.tw/~cjlin/liblinear/. Version 0.1.2
package libxml-enumerator
package
package lzma-enumerator
package
High level bindings to xz-utils. Version 0.1.3
package netstring-enumerator
package
Netstrings are a simple way to encode arbitrary binary data, so it can be decoded without requiring sentinel bytes. Version 0.1.1
package network-enumerator
package
package pcap-enumerator
package
pcap enumerator package Version 0.4
package samtools-enumerator
package
Enumerator interface to SamTools library Version 0.1.2.1
package sndfile-enumerators
package
encode and decode soundfiles using Iteratees. Audio files may be read or written, with classes and data structures to facilitate conversion between different formats.  Currently only wave format is supported. Version 0.10.0.0
package twitter-enumerator
package
This package uses enumerator package for access Twitter API. Version 0.0.3
package uri-enumerator
package
This package is deprecated in favor of uri-conduit. Version 0.1.0.1
package uri-enumerator-file
package
uri-enumerator backend for the file scheme Version 0.1.1.1
package usb-enumerator
package
This packages provides iteratee enumerators for the usb package. Version 0.3
package xml-enumerator
package
This package is deprecated in favor of xml-conduit. This package provides parsing and rendering functions for XML. It is based on the datatypes found in the xml-types package. This package is broken up into the following modules: * Text.XML: DOM-based parsing and rendering. This is the most commonly used module. * Text.XML.Cursor: A wrapper around Text.XML which allows bidirectional traversing of the DOM, similar to XPath. (Note: Text.XML.Cursor.Generic is the same concept, but will work with any node representation.) * Text.XML.Unresolved: A slight modification to Text.XML which does not require all entities to be resolved at parsing. The datatypes are slightly more complicated here, and therefore this module is only recommended when you need to deal directly with raw entities. * Text.XML.Stream.Parse: Streaming parser, including some streaming parser combinators. * Text.XML.Stream.Render: Streaming renderer. Additionally, the xml-hamlet package http://hackage.haskell.org/package/xml-hamlet provides a more convenient syntax for creating XML documents. For a more thorough tutorial on this library, please see http://www.yesodweb.com/book/xml-enumerator. Version 0.4.4.1
package xml-enumerator-combinators
package
Parser combinators for xml-enumerator and compatible XML parsers. The aim is to provide advanced parser combinators to eliminate tiresome repetition of boilerplate in streaming XML parsers. Version 0.1
package yajl-enumerator
package