factor-1.6: Factoring integers and polynomials
Safe HaskellSafe-Inferred
LanguageHaskell2010

Factor.Util

Description

 

Documentation

type Factor f a = Either f a Source #

runFactor :: Show f => Factor f a -> a Source #

data Verbose a Source #

Instances

Instances details
Monad Verbose Source # 
Instance details

Defined in Factor.Util

Methods

(>>=) :: Verbose a -> (a -> Verbose b) -> Verbose b #

(>>) :: Verbose a -> Verbose b -> Verbose b #

return :: a -> Verbose a #

Functor Verbose Source # 
Instance details

Defined in Factor.Util

Methods

fmap :: (a -> b) -> Verbose a -> Verbose b #

(<$) :: a -> Verbose b -> Verbose a #

Applicative Verbose Source # 
Instance details

Defined in Factor.Util

Methods

pure :: a -> Verbose a #

(<*>) :: Verbose (a -> b) -> Verbose a -> Verbose b #

liftA2 :: (a -> b -> c) -> Verbose a -> Verbose b -> Verbose c #

(*>) :: Verbose a -> Verbose b -> Verbose b #

(<*) :: Verbose a -> Verbose b -> Verbose a #

type Width = Int Source #

data Residue Source #

Instances

Instances details
Eq Residue Source # 
Instance details

Defined in Factor.Util

Methods

(==) :: Residue -> Residue -> Bool #

(/=) :: Residue -> Residue -> Bool #

Ord Residue Source # 
Instance details

Defined in Factor.Util

Show Residue Source # 
Instance details

Defined in Factor.Util

singleton :: a -> [a] Source #

doubleton :: a -> a -> [a] Source #

tripleton :: a -> a -> a -> [a] Source #

unfoldlN :: (b -> (a, b)) -> Int -> b -> ([a], b) Source #

unfoldrN :: (b -> (a, b)) -> Int -> b -> ([a], b) Source #

data Table Source #

Constructors

Table 

Instances

Instances details
Show Table Source # 
Instance details

Defined in Factor.Util

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #