anki-tools-0.1.0.0: Tools for interacting with Anki database

Copyright(c) 2016 Al Zohali
LicenseBSD3
MaintainerAl Zohali <zohl@fmap.me>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Anki.Collection

Description

Description

Representation of a collection and related definitions.

Synopsis

Documentation

data Collection Source #

Collection as in col table.

Constructors

Collection 

Fields

Instances

Eq Collection Source # 
Show Collection Source # 
Generic Collection Source # 

Associated Types

type Rep Collection :: * -> * #

FromRow Collection Source # 
type Rep Collection Source # 
type Rep Collection = D1 (MetaData "Collection" "Anki.Collection" "anki-tools-0.1.0.0-5D8qL7t0KhK4qOjZTwOuPj" False) (C1 (MetaCons "Collection" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "collectionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "collectionCrt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "collectionMod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ModificationTime)))) ((:*:) (S1 (MetaSel (Just Symbol "collectionScm") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "collectionVer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "collectionDty") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "collectionUsn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "collectionLs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "collectionGlobalOptions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlobalOptions)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "collectionModels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Model])) (S1 (MetaSel (Just Symbol "collectionDecks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Deck]))) ((:*:) (S1 (MetaSel (Just Symbol "collectionDeckOptions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DeckOptions])) (S1 (MetaSel (Just Symbol "collectionTags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Tag])))))))

data GlobalOptions Source #

Global opitions.

Instances

Eq GlobalOptions Source # 
Show GlobalOptions Source # 
Generic GlobalOptions Source # 

Associated Types

type Rep GlobalOptions :: * -> * #

FromJSON GlobalOptions Source # 
FromField GlobalOptions Source # 
type Rep GlobalOptions Source # 
type Rep GlobalOptions = D1 (MetaData "GlobalOptions" "Anki.Collection" "anki-tools-0.1.0.0-5D8qL7t0KhK4qOjZTwOuPj" False) (C1 (MetaCons "GlobalOptions" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "goNextPos") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goEstTimes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))) ((:*:) (S1 (MetaSel (Just Symbol "goSortBackwards") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goSortType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "goTimeLim") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goActiveDecks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DeckId]))) ((:*:) (S1 (MetaSel (Just Symbol "goAddToCur") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goCurDeck") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "goCurModel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ModelId)) (S1 (MetaSel (Just Symbol "goLastUnburied") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))) ((:*:) (S1 (MetaSel (Just Symbol "goCollapseTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goActiveCols") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "goSavedFilters") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goDueCounts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))) ((:*:) (S1 (MetaSel (Just Symbol "goNewBury") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)) (S1 (MetaSel (Just Symbol "goNewSpread") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value)))))))

data Tag Source #

Tags from col.tags.

Constructors

Tag 

Fields

Instances

Eq Tag Source # 

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Show Tag Source # 

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

FromField [Tag] Source #