Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
The Metropolis algorithm. The classic Metropolis algorithm. Wander around parameter space according to a simple spherical Gaussian distribution. Exports a mcmc function that prints a trace to stdout, a chain function for collecting results in-memory, and a metropolis transition operator that can be used more generally.
import Numeric.MCMC.Metropolis rosenbrock :: [Double] -> Double rosenbrock [x0, x1] = negate (5 *(x1 - x0 ^ 2) ^ 2 + 0.05 * (1 - x0) ^ 2) main :: IO () main = withSystemRandom . asGenIO $ mcmc 10000 1 [0, 0] rosenbrock
-
English spelling functions with an emphasis on simplicity. A set of simplistic functions capturing the more regular parts of English spelling (for generation, not parsing). You will need to complement this with some account for irregular nouns/verbs. This package is not meant to provide anything resembling a full account of English morphology (something like Functional Morphology or sequor could be better suited). The main goal is to provide something cheap and cheerful with no learning curve, that you can use until your application calls for more robustness. See https://github.com/Mikolaj/miniutter for a simple use case.
-
Simple English clause creation from arbitrary words This library helps in generating simple present tense English sentences from short, parametrized descriptions. In a typical use, the structure of a clause is fixed, but the particular words to be used vary in arbitrary ways. The main goal of the library is to minimize the API complexity and the code size of programs that use it. The library doesn't attempt to ban incorrect English sentences, but just make the creation of the simple correct ones easy and predictable.
-
Functions to find both minimum and maximum (or several of them simultaneously) in one pass. Contains some functions to find out both minimum and maximum elements of the finite Foldable structures in one pass. Is a fork of the https://hackage.haskell.org/package/subG-0.6.1.0.
-
A reliable way to detect the presence of a MinTTY console on Windows MinTTY is a Windows-specific terminal emulator for the widely used Cygwin and MSYS projects, which provide Unix-like environments for Windows. MinTTY consoles behave differently from native Windows consoles (such as cmd.exe or PowerShell) in many ways, and in some cases, these differences make it necessary to treat MinTTY consoles differently in code. The mintty library provides a simple way to detect if your code in running in a MinTTY console on Windows. It exports isMinTTY, which does the right thing 90% of the time (by checking if standard error is attached to MinTTY), and it also exports isMinTTYHandle for the other 10% of the time (when you want to check is some arbitrary handle is attached to MinTTY). As you might expect, both of these functions will simply return False on any non-Windows operating system.
-
Strict markdown processor for writers Strict markdown processor for writers.
-
A library for parallel programming based on a monad The Par monad offers a simple API for parallel programming. The library works for parallelising both pure and IO computations, although only the pure version is deterministic. The default implementation provides a work-stealing scheduler and supports forking tasks that are much lighter weight than IO-threads. For complete documentation see Control.Monad.Par. Some examples of use can be found in the examples/ directory of the source package. Other related packages:
- abstract-par provides the type classes that abstract over different implementations of the Par monad.
- monad-par-extras provides extra combinators and monad transformers layered on top of the Par monad.
- Fix bugs that cause "thread blocked indefinitely on MVar" crashes.
- Added Control.Monad.Par.IO
-
Combinators and extra features for Par monads The modules below provide additional data structures, and other added capabilities layered on top of the Par monad.
-
Parallel execution of monadic computations This package defines classes of monads that can perform multiple executions in parallel and combine their results. For any monad that's an instance of the class, the package re-implements a subset of the Control.Monad interface, but with parallel execution.
-
Lift control operations like exception catching through monad transformers This package defines MonadPeelIO, a subset of MonadIO into which generic control operations such as catch can be lifted from IO. Instances are based on monad transformers in MonadTransPeel, which includes all standard monad transformers in the transformers library except ContT. For convenience, it provides a wrapped version of Control.Exception with types generalized from IO to all monads in MonadPeelIO.