Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Random.Dice
Documentation
foldExpr :: (String -> t1 -> t2) -> (t2 -> t2 -> t2) -> (t2 -> t2 -> t2) -> (t2 -> t2 -> t2) -> (t2 -> t2 -> t2) -> Expr t1 -> t2 Source #
evalExprWithDiv :: (Num a, Monad m) => (a -> a -> m a) -> Expr a -> m a Source #
evalFractionalExpr :: (Eq a, Fractional a, MonadFail m) => Expr a -> m a Source #
evalIntegralExpr :: (Integral a, MonadFail m) => Expr a -> m a Source #
fmtIntegralExpr :: (Show a, Integral a) => Expr a -> String Source #
fmtIntegralListExpr :: (Show a, Integral a) => Expr [a] -> String Source #
fmtSimpleRational :: Expr [Integer] -> String Source #
showScalarConst :: Show a => String -> a -> p -> String -> String Source #
showListConst :: Show a => String -> a -> p -> String -> String Source #
showSimpleConst :: (Ord a, Num a) => (a -> t -> ShowS) -> p -> [t] -> a -> ShowS Source #
showSimpleListConst :: Show a => String -> [a] -> Int -> ShowS Source #
showSimpleRationalConst :: p -> [Ratio Integer] -> Integer -> ShowS Source #
showErrorWith :: (t -> ShowS) -> ErrorT String Identity t -> ShowS Source #
showDouble :: Double -> ShowS Source #
showRational :: (Show a1, Ord a2, Num a1, Num a2, Eq a1) => a2 -> Ratio a1 -> ShowS Source #
showRationalWithDouble :: Ratio Integer -> ShowS Source #
fmtExprPrec :: (String -> a -> Int -> ShowS) -> Expr a -> Int -> ShowS Source #
summarizeRollsOver :: Num a => Int -> [a] -> [a] Source #
positiveNumber :: CharParser st (String, Integer) Source #