hedra-0.1: hedra.cabal
cabal-version: >=1.10
name: hedra
version: 0.1
synopsis: A small library and executable for generating dice rolls.
homepage: https://github.com/vtan/hedra
license: MIT
license-file: LICENSE
author: Viktor Tanyi
maintainer: tanyi.viktor@gmail.com
category: Game
build-type: Simple
extra-source-files: README.md
tested-with:
GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.3
description:
As in polyhedra. Generates dice rolls in the REPL or in a standalone executable.
.
Example REPL session:
.
> $ cabal v2-repl
> λ> 2 `d` 8
> 8 | 1 7
> λ> 1 `d` 20
> 13
> λ> 1 `d` 100
> 25 | 20 5
> λ> 4 `d` f
> 3 | [ ] [+] [+] [+]
.
Example session in the executable:
.
> $ cabal v2-run hedra
> hedra> 2d8
> 2d8: 14 | 6 8
> hedra> 1d20
> 1d20: 1
> hedra> d20
> d20: 5
> hedra> d100
> d100: 61 | 60 1
> hedra> d%
> d%: 5 | 00 5
> hedra> 4df
> 4df: 2 | [ ] [+] [+] [ ]
source-repository head
type: git
location: https://github.com/vtan/hedra.git
library
hs-source-dirs: src
exposed-modules: Hedra
build-depends:
base >=4.10 && <4.13,
random >=1.1
ghc-options: -O2 -Wall
other-extensions: InstanceSigs
default-language: Haskell2010
executable hedra
hs-source-dirs: app
main-is: Main.hs
build-depends:
hedra
, base >=4.10 && <4.13
, haskeline >=0.7.4.3 && <0.8
ghc-options: -O2 -Wall
other-extensions: LambdaCase
default-language: Haskell2010
test-suite doctests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Doctests.hs
build-depends:
hedra
, base >=4.10 && <4.13
, doctest >=0.9.2
ghc-options: -Wall
default-language: Haskell2010