app
Mana
Description
Module dealing with mana
amount :: T -> Mana -> Nat #
amount t m returns the amount of mana of m at turn t
amount t m
m
t
class Labeler a where #
How to typeset mana when an a is available
a
Methods
labeler :: a -> Mana -> String #
Defined in Mana
data Mana #
Different mana costs
Constructors
Mana cost is constant
Mana cost equals the number of remaining turns
showsPrec :: Int -> Mana -> ShowS #
show :: Mana -> String #
showList :: [Mana] -> ShowS #
Associated Types
type Rep Mana :: Type -> Type #
from :: Mana -> Rep Mana x #
to :: Rep Mana x -> Mana #
Defined in Json
parseJSON :: Value -> Parser Mana #
parseJSONList :: Value -> Parser [Mana] #
read :: String -> Maybe Mana #
class Read a where #
A safe alternative to prelude's Read
Read
read :: String -> Maybe a #
Defined in Command
read :: String -> Maybe Command #
(>=) :: T -> Mana -> Nat -> Bool #
>= t m n returns whether m >= n when it's turn t
>= t m n
m >= n
(<=) :: T -> Mana -> Nat -> Bool #
<= t m n returns whether m <= n when it's turn t
<= t m n
m <= n
(>) :: T -> Mana -> Nat -> Bool #
> t m n returns whether m > n when it's turn t
> t m n
m > n
(<) :: T -> Mana -> Nat -> Bool #
< t m n returns whether m < n when it's turn t
< t m n
m < n
show :: Maybe T -> Mana -> String #
The text to show for mana, depending on whether the turn is provided or not