Module
EasyAlexa
- Package
- purescript-easy-alexa
- Repository
- twitchard/purescript-easy-alexa
#EmptyableSlot Source
class EmptyableSlot a whereMembers
parseSlot' :: String -> aempty :: aname' :: Proxy a -> StringslotValues' :: (Proxy a) -> Array { synonyms :: Array String, value :: String }
Instances
(Slot a) => EmptyableSlot (Maybe a)
#AlexaInput Source
class AlexaInput a whereMembers
parseInput :: AlexaRequest -> Either InputError ainputList :: (Proxy a) -> NonEmptyArray InputRec
Instances
(Generic a rep, AlexaInputRep rep) => AlexaInput a
#AlexaInputRep Source
class AlexaInputRep rep whereMembers
parseInput' :: AlexaRequest -> Either InputError repinputList' :: (Proxy rep) -> NonEmptyArray InputRec
Instances
(AlexaInputRep (Constructor aname a), AlexaInputRep b, IsSymbol aname) => AlexaInputRep (Sum (Constructor aname a) b)(IsSymbol aname) => AlexaInputRep (Constructor aname NoArguments)(RowToList row rs, AlexaInputRow rs row, IsSymbol cname) => AlexaInputRep (Constructor cname (Argument (Record row)))
#AlexaInputRow Source
class AlexaInputRow (rs :: RowList) (r :: Row Type) | rs -> r whereMembers
parseSlots :: RLProxy rs -> Object { value :: String } -> Either InputError (Record r)slotList :: RLProxy rs -> Array SlotRec
Instances
(Lacks sym row', IsSymbol sym, RowToList row rl, RowToList row' rl', Cons sym ty row' row, EmptyableSlot ty, AlexaInputRow rl' row') => AlexaInputRow (Cons sym ty rl') rowAlexaInputRow Nil ()
#languageModel Source
languageModel :: forall a. AlexaInput a => Proxy a -> String -> Map String (NonEmptyArray String) -> Either String LanguageModel- Modules
- EasyAlexa