Popularity
2.8
Declining
Activity
0.0
Stable
1
4
0
Monthly Downloads: 4
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Numeric
Latest version: v0.1.0.0
hafar alternatives and similar packages
Based on the "Numeric" category.
Alternatively, view hafar alternatives based on common mentions on social networks and blogs.
-
numeric-ranges
DSL written in Haskell that provides a set of tools for working with both open and closed numeric intervals. -
simple-units
Haskell library for performing arithmetic with SI units with type-checked dimensional analysis -
approx
The library is created to allow for a easy-to-use reasonable way of emulating approx in Haskell. -
gutenberg-fibonaccis
DISCONTINUED. The first 1001 Fibonacci numbers, retrieved from the Gutenberg Project.
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hafar or a related project?
README
Hafar
Hafar is an implementation of affine arithmetic in haskell.
Building
To build the library, simply run
# stack build
or if using cabal
# cabal install --only-dependencies
# cabal build
Example
All operations with affine forms must be done inside the AFM monad.
import Numeric.Interval hiding (interval)
x1 = do
a <- newFromInterval $ 4...6
b <- newFromInterval $ 4...6
return . interval $ a - b
evalAFM x1 -- evaluates to approximately -2 ... 2
x2 = do
a <- newFromInterval $ 4...6
return . interval $ a - a
evalAFM x2 -- evaluates to approximately 0 ... 0