Category is a new type to hold any information of a cards category within a decklist
CN6GCPII465OL2XX33GT6E6SGNTTVB2XDGN7HYPJL2YF5IHDRKPQC
{-# LANGUAGE TemplateHaskell #-}
module Category (
-- * Types
Category (..),
-- * Lenses
name,
copies,
) where
import Control.Lens
import Util
type Copies = PositiveNumber
type CategoryName = NonEmptyText
data Category = Category
{ _name :: !CategoryName
, _copies :: !Copies
}
deriving (Show, Eq, Ord)
makeLenses ''Category