{-# LANGUAGE NegativeLiterals #-}
{-# LANGUAGE RebindableSyntax #-}
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_HADDOCK prune #-}
module NumHask.Prelude
(
module NumHask.Algebra.Additive,
module NumHask.Algebra.Field,
module NumHask.Algebra.Group,
module NumHask.Algebra.Lattice,
module NumHask.Algebra.Module,
module NumHask.Algebra.Multiplicative,
module NumHask.Algebra.Ring,
module NumHask.Analysis.Metric,
module NumHask.Data.Complex,
module NumHask.Data.Integral,
module NumHask.Data.LogField,
module NumHask.Data.Rational,
module NumHask.Data.Positive,
module NumHask.Exception,
fromString,
fail,
ifThenElse,
fromList,
fromListN,
Category (..),
pack,
unpack,
module Data.Bifunctor,
module Data.Biapplicative,
module Control.Monad.Morph,
module Data.Functor.Constant,
module System.Random,
module System.Random.Stateful,
Natural (..),
module Protolude,
)
where
import Control.Category (Category (..))
import Control.Monad (fail)
import Control.Monad.Morph
import Data.Biapplicative
import Data.Bifunctor
import Data.Functor.Constant
import Data.String
import Data.Text (pack, unpack)
import GHC.Exts
import GHC.Natural (Natural (..))
import NumHask.Algebra.Additive
import NumHask.Algebra.Field
import NumHask.Algebra.Group
import NumHask.Algebra.Lattice
import NumHask.Algebra.Module
import NumHask.Algebra.Multiplicative
import NumHask.Algebra.Ring
import NumHask.Analysis.Metric
import NumHask.Data.Complex
import NumHask.Data.Integral
import NumHask.Data.LogField
import NumHask.Data.Positive
import NumHask.Data.Rational
import NumHask.Exception
import Protolude hiding ((*), (**), (+), (-), (.), (/), (<<$>>), (<<*>>), Complex (..), Integral (..), Ratio, Product (..), Rep, Semiring (..), Sum (..), (^), (^^), abs, acos, acosh, asin, asinh, atan, atan2, atanh, ceiling, cis, cos, cosh, even, exp, floor, fromInteger, fromIntegral, fromRational, gcd, imagPart, infinity, log, logBase, magnitude, mkPolar, negate, odd, phase, pi, polar, product, properFraction, realPart, recip, reduce, round, sin, sinh, sqrt, subtract, sum, tan, tanh, toInteger, toRational, trans, truncate, zero)
import System.Random
import System.Random.Stateful
ifThenElse :: Bool -> a -> a -> a
ifThenElse :: Bool -> a -> a -> a
ifThenElse Bool
True a
x a
_ = a
x
ifThenElse Bool
False a
_ a
y = a
y