-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Playing with applicatives and dice! -- -- A basic library and program for simulated rolling of polyhedral dice, -- as would be used in pen and paper RPGs. @package roller @version 0.1.7 module Roller.CLI type CLI a = Bool -> Int -> [String] -> a withOpts :: CLI a -> IO a module Roller.Types type NumberOfDice = Word8 type NumberOfFacesOfEachDie = Word8 data DiceExpression maybeDiceExpressionDestructor :: (NumberOfDice -> NumberOfFacesOfEachDie -> Bool) -> (NumberOfDice -> NumberOfFacesOfEachDie -> Bool) -> (NumberOfDice -> NumberOfFacesOfEachDie -> Bool) -> (Word8 -> Bool) -> (Word8 -> Bool) -> (Word8 -> Bool) -> Bool -> Maybe DiceExpression -> Bool constructDieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression constructAddedDieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression constructSubtractedDieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression constructConstantTerm :: Word8 -> DiceExpression constructAddedConstantTerm :: Word8 -> DiceExpression constructSubtractedConstantTerm :: Word8 -> DiceExpression dieSymbol :: Char additionSymbol :: Char subtractionSymbol :: Char rolls :: [DiceExpression] -> IO [Integer] instance GHC.Show.Show Roller.Types.DiceExpression module Roller.Parse parse :: String -> Maybe [DiceExpression] naturalNumber :: RE Char Word8 dieTerm :: RE Char DiceExpression module Roller.Core main :: IO ()