-- 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.6 module Roller.CLI type CLI a = Bool -> Int -> [String] -> a withOpts :: CLI a -> IO a module Roller.Types type NumberOfDice = Word8 type NumberOfFacesOfEachDie = Word8 dieSymbol :: Char additionSymbol :: Char subtractionSymbol :: Char data DiceExpression DieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression AddedDieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression SubtractedDieTerm :: NumberOfDice -> NumberOfFacesOfEachDie -> DiceExpression ConstantTerm :: Word8 -> DiceExpression AddedConstantTerm :: Word8 -> DiceExpression SubtractedConstantTerm :: Word8 -> DiceExpression instance GHC.Show.Show Roller.Types.DiceExpression module Roller.Parse parse :: String -> Maybe [DiceExpression] module Roller.Core main :: IO ()