grisette-0.11.0.0: Symbolic evaluation as a library
Copyright(c) Sirui Lu 2024
LicenseBSD-3-Clause (see the LICENSE file)
Maintainersiruilu@cs.washington.edu
StabilityExperimental
PortabilityGHC only
Safe HaskellNone
LanguageHaskell2010

Grisette.Internal.Unified.Class.UnifiedSafeFdiv

Description

 
Synopsis

Documentation

safeFdiv :: forall (mode :: EvalModeTag) e a m. (MonadError e m, UnifiedSafeFdiv mode e a m) => a -> a -> m a Source #

Unified safeFdiv operation.

This function isn't able to infer the mode, so you need to provide the mode explicitly. For example:

safeFdiv @mode a b

class UnifiedSafeFdiv (mode :: EvalModeTag) e a (m :: Type -> Type) where Source #

A class that provides unified floating division operations.

We use this type class to help resolve the constraints for SafeFdiv.

Methods

withBaseUnifiedSafeFdiv :: (SafeFdiv e a m => r) -> r Source #