lojbanios-0.1.0.0: Lojban teaching platform
Safe HaskellSafe-Inferred
LanguageHaskell2010

Server.Api.V0.Contract

Documentation

data Course Source #

Constructors

Course 

Instances

Instances details
ToJSON Course Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: Course -> Value

toEncoding :: Course -> Encoding

toJSONList :: [Course] -> Value

toEncodingList :: [Course] -> Encoding

Generic Course Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep Course :: Type -> Type #

Methods

from :: Course -> Rep Course x #

to :: Rep Course x -> Course #

Show Course Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep Course Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep Course = D1 ('MetaData "Course" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "Course" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dictionaryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "style") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CourseStyle))))

data CourseStyle Source #

Constructors

CourseStyle 

Instances

Instances details
ToJSON CourseStyle Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: CourseStyle -> Value

toEncoding :: CourseStyle -> Encoding

toJSONList :: [CourseStyle] -> Value

toEncodingList :: [CourseStyle] -> Encoding

Generic CourseStyle Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep CourseStyle :: Type -> Type #

Show CourseStyle Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CourseStyle Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CourseStyle = D1 ('MetaData "CourseStyle" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "CourseStyle" 'PrefixI 'True) (S1 ('MetaSel ('Just "color1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "iconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))))

data Deck Source #

Instances

Instances details
ToJSON Deck Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: Deck -> Value

toEncoding :: Deck -> Encoding

toJSONList :: [Deck] -> Value

toEncodingList :: [Deck] -> Encoding

Generic Deck Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep Deck :: Type -> Type #

Methods

from :: Deck -> Rep Deck x #

to :: Rep Deck x -> Deck #

Show Deck Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

showsPrec :: Int -> Deck -> ShowS #

show :: Deck -> String #

showList :: [Deck] -> ShowS #

type Rep Deck Source # 
Instance details

Defined in Server.Api.V0.Contract

data Card Source #

Constructors

Card 

Instances

Instances details
ToJSON Card Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: Card -> Value

toEncoding :: Card -> Encoding

toJSONList :: [Card] -> Value

toEncodingList :: [Card] -> Encoding

Generic Card Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep Card :: Type -> Type #

Methods

from :: Card -> Rep Card x #

to :: Rep Card x -> Card #

Show Card Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

showsPrec :: Int -> Card -> ShowS #

show :: Card -> String #

showList :: [Card] -> ShowS #

type Rep Card Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep Card = D1 ('MetaData "Card" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "Card" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shortDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data DeckPreferences Source #

Instances

Instances details
ToJSON DeckPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: DeckPreferences -> Value

toEncoding :: DeckPreferences -> Encoding

toJSONList :: [DeckPreferences] -> Value

toEncodingList :: [DeckPreferences] -> Encoding

Generic DeckPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep DeckPreferences :: Type -> Type #

Show DeckPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep DeckPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep DeckPreferences = D1 ('MetaData "DeckPreferences" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "DeckPreferences" 'PrefixI 'True) (S1 ('MetaSel ('Just "cardPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text CardPreferences))))

data CardStatus Source #

Instances

Instances details
FromJSON CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

parseJSON :: Value -> Parser CardStatus

parseJSONList :: Value -> Parser [CardStatus]

ToJSON CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: CardStatus -> Value

toEncoding :: CardStatus -> Encoding

toJSONList :: [CardStatus] -> Value

toEncodingList :: [CardStatus] -> Encoding

Generic CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep CardStatus :: Type -> Type #

Show CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

Eq CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardStatus Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardStatus = D1 ('MetaData "CardStatus" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "CurrentlyLearning" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlreadyMastered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotStarted" 'PrefixI 'False) (U1 :: Type -> Type)))

data CardPreferences Source #

Constructors

CardPreferences 

Fields

Instances

Instances details
ToJSON CardPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: CardPreferences -> Value

toEncoding :: CardPreferences -> Encoding

toJSONList :: [CardPreferences] -> Value

toEncodingList :: [CardPreferences] -> Encoding

Generic CardPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep CardPreferences :: Type -> Type #

Show CardPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardPreferences Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardPreferences = D1 ('MetaData "CardPreferences" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "CardPreferences" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CardStatus)))

data DeckProficiency Source #

Instances

Instances details
ToJSON DeckProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: DeckProficiency -> Value

toEncoding :: DeckProficiency -> Encoding

toJSONList :: [DeckProficiency] -> Value

toEncodingList :: [DeckProficiency] -> Encoding

Generic DeckProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep DeckProficiency :: Type -> Type #

Show DeckProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep DeckProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep DeckProficiency = D1 ('MetaData "DeckProficiency" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "DeckProficiency" 'PrefixI 'True) (S1 ('MetaSel ('Just "cardProficiencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text CardProficiency))))

data CardProficiency Source #

Constructors

CardProficiency 

Fields

Instances

Instances details
ToJSON CardProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

Methods

toJSON :: CardProficiency -> Value

toEncoding :: CardProficiency -> Encoding

toJSONList :: [CardProficiency] -> Value

toEncodingList :: [CardProficiency] -> Encoding

Generic CardProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

Associated Types

type Rep CardProficiency :: Type -> Type #

Show CardProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardProficiency Source # 
Instance details

Defined in Server.Api.V0.Contract

type Rep CardProficiency = D1 ('MetaData "CardProficiency" "Server.Api.V0.Contract" "lojbanios-0.1.0.0-CS8hSri5KztGGh0Q3HZpbG" 'False) (C1 ('MetaCons "CardProficiency" 'PrefixI 'True) (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))