Skip to content

Instantly share code, notes, and snippets.

@unarist
Created August 20, 2013 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unarist/6282074 to your computer and use it in GitHub Desktop.
Save unarist/6282074 to your computer and use it in GitHub Desktop.
アイカツカード.hs。試しに書いてみたけどreadやshowを手書きしたくないわこれ・・・
data GameVersion = Vol1 | Vol2 | Vol3 | Vol4 | Vol5 | Vol6 | Promotion
deriving Eq
data AppearType = Cute | Cool | Sexy | Pop
deriving Eq
data CardCategory = Tops | Bottoms | Onepiece | Shoes | Accessory
deriving Eq
data CardBrand = AngelySugar | FuturingGirl | SpicyAgeha | HappyRainbow
| LoliGothic | AuroraFantasy | LoveQueen | MagicalToy
deriving Eq
data CardRarelity = Normal | Rare | PremiumRare | CampaignRare
deriving Eq
data Card = Card {
cardId :: Text,
cardEdition ::-
cardName :: Text,
cardType :: Maybe AppearType,
cardCategory :: CardCategory,
cardBrand :: Maybe CardBrand,
cardRarelity :: Maybe CardRarelity,
cardStars :: Int,
cardDressAppear :: Maybe Text,
cardAppearPoint :: Int,
cardEffect :: Maybe Text
cardSources :: [(Text, Maybe Text)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment