Num -opengl

class (Eq a, Show a) => Num a
base Prelude
Basic numeric class. Minimal complete definition: all except negate or (-)
module Numeric
base Numeric
Odds and ends, mostly functions for reading and showing RealFloat-like kind of values.
package Numbers
Functions for finding prime numbers, checking whether a number is prime, finding the factors of a number etc. Version 0.2.1
package NumberSieves
This package includes the Sieve of O'Neill and two generalizations of the Sieve of Eratosthenes.   The Sieve of O'Neill is a fully incremental primality sieve based on priority queues.  The other two are array based, and are not incremental.   One sieves the smallest prime factor,  and is useful if you want to factor a large quantity of small numbers.   The other sieves Euler's Totient, which is the number of positive integers relatively prime and less than a given number. Version 0.1.2
type NumericPadOption = Maybe Char
time Data.Time.Format
package NumInstances
Instances of numeric classes for functions and tuples. Import Data.NumInstances to get all the instances. If you want only function or only tuple instances, import Data.NumInstances.Function or Data.NumInstances.Tuple. Version 1.3
package NumLazyByteString
Num, Enum, Eq, Integral, Ord, Real, and Show instances for Lazy ByteStrings Version
type NumLevels = GLint
GLUT Graphics.UI.GLUT.Objects
NumTyLit :: Integer -> TyLit
template-haskell Language.Haskell.TH.Syntax, template-haskell Language.Haskell.TH
> 2
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.
number :: Int -> String -> String
QuickCheck Test.QuickCheck.Text
package numbering
Combinators for creating bijections from a subset of an arbitrary type to a range of Ints, , e.g. for using libraries that require Int IDs. Version 0.2.1
package numbers
Instances of the numerical classes for a variety of different numbers: (computable) real numbers, arbitrary precision fixed numbers, arbitrary precision floating point numbers, differentiable numbers, symbolic numbers, natural numbers, interval arithmetic. Version 3000.2.0.0
numCapabilities :: Int
base GHC.Conc.Sync, base GHC.Conc
the value passed to the +RTS -N flag. This is the number of Haskell threads that can run truly simultaneously at any given time, and is typically set to the number of physical CPU cores on the machine.
numColorMapEntries :: GettableStateVar GLint
GLUT Graphics.UI.GLUT.Colormap
Contains the number of entries in the colormap of the current window's current layer (0 in RGBA mode).
numDialsAndButtons :: GettableStateVar (Maybe (DialCount, ButtonCount))
GLUT Graphics.UI.GLUT.State
Contains Just the number of dials and buttons of an attached dial & button box or Nothing if there is none.
numDiscardedTests :: State -> Int
QuickCheck Test.QuickCheck.State
the current number of discarded tests
package numerals
Convert numbers to number words in a number of languages. Each language has its own module. The module name is based on one of the ISO 639 Alpha codes. Each module contains one or more cardinal functions and a struct function. The cardinal functions directly convert cardinal numbers to a string-like representation of their spoken form. The struct functions convert numbers to a polymorphic representation of their grammatical structure. All language modules are implemented using the numerals-base package. The use of this package is best understood with some examples. Because the results of conversion are polymorphic we need to choose a specific type. For these examples we'll use simple strings. But any type that has instances for Monoid and IsString will work. First some English number names, both British and US variants: >>> import qualified Text.Numeral.Language.EN as EN >>> EN.uk_cardinal 123 :: Maybe String Just "one hundred and twenty-three" >>> EN.us_cardinal (10^50 + 42) :: Maybe String Just "one hundred quindecillion forty-two" French, which contains some traces of a base 20 system: >>> import qualified Text.Numeral.Language.FR as FR >>> FR.cardinal (-99) :: Maybe String Just "moins quatre-vingt-dix-neuf" Conversions can fail. Alamblak, a language spoken by a few people in Papua New Guinea, has no representation for negative numbers: >>> import qualified Text.Numeral.Language.AMP as AMP >>> AMP.cardinal (-3) :: Maybe String Nothing Some languages have multiple scripts and methods for writing number names. Take Chinese for example, which can be written using Han characters or transcribed to the Latin script using Pinyin. Traditional Chinese characters: >>> import qualified Text.Numeral.Language.ZH as ZH >>> ZH.trad_cardinal 123456 :: Maybe String Just "A, C~Am" Simplified characters for use in financial contexts: >>> ZH.finance_simpl_cardinal 123456 :: Maybe String Just "0߆/ F" Transcribed using Pinyin: >>> ZH.pinyin_cardinal 123456 :: Maybe String Just "shrwn snqin sbi wsh li" Using the struct functions you can see the grammatical structure of number names. Because the results of these functions are polymorphic you need to specify a specific type. >>> import qualified Text.Numeral.Language.NL as NL >>> NL.struct 123 :: Maybe Integer Just 123 >>> import Text.Numeral >>> NL.struct 123 :: Maybe Exp Just (Add (Lit 100) (Add (Lit 3) (Mul (Lit 2) (Lit 10)))) Compare with: >>> NL.cardinal 123 :: Maybe String Just "honderddrientwintig" 100 (honderd) + (3 (drie) + (n) 2 (twin) * 10 (tig)) Version
package numerals-base
This package contains machinery to construct functions that convert numbers to number words. It allows you to write a function which converts a number like 142 to the string "one hundred and forty-two". The documentation for the Text.Numeral module contains an high level overview of the package. If you just want to convert numbers to number words in a specific language you should probably use the numerals package. That package also contains numerous examples on how to use the functions in this package. Version 0.3
package numeric-extras

Show more results