Maintainer | bastiaan.heeren@ou.nl |
---|---|

Stability | provisional |

Portability | portable (depends on ghc) |

Safe Haskell | Safe |

Language | Haskell2010 |

# Safe division

class Num a => SafeDiv a where Source #

## Instances

SafeDiv Double Source # | |

SafeDiv Integer Source # | |

SafeDiv DecimalFraction Source # | |

Defined in Domain.Math.Data.DecimalFraction | |

Integral a => SafeDiv (Ratio a) Source # | |

(Eq a, Fractional a) => SafeDiv (SquareRoot a) Source # | |

Defined in Domain.Math.Data.SquareRoot safeDiv :: SquareRoot a -> SquareRoot a -> Maybe (SquareRoot a) Source # safeRecip :: SquareRoot a -> Maybe (SquareRoot a) Source # | |

(Eq a, Fractional a) => SafeDiv (Polynomial a) Source # | |

Defined in Domain.Math.Data.Polynomial safeDiv :: Polynomial a -> Polynomial a -> Maybe (Polynomial a) Source # safeRecip :: Polynomial a -> Maybe (Polynomial a) Source # |

safeDivFractional :: (Eq a, Fractional a) => a -> a -> Maybe a Source #