unique-logic-tf-0.5: Solve simple simultaneous equations

Safe HaskellSafe
LanguageHaskell98

UniqueLogic.ST.TF.ZeroFractional

Description

This class provides short-cut multiplication and division that checks for 0/0.

Documentation

class Fractional a => C a where Source #

Minimal complete definition

multiply, divide

Methods

multiply :: a -> Maybe a Source #

divide :: a -> a -> Maybe a Source #

multiply :: C a => a -> Maybe a Source #

divide :: C a => a -> a -> Maybe a Source #

multiplyDefault :: (Num a, Eq a) => a -> Maybe a Source #

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