yeshql-3.0.1.2: YesQL-style SQL database abstraction

Safe HaskellNone
LanguageHaskell2010

Database.YeshQL.SqlRow.Class

Documentation

class ToSqlRow a where Source #

Minimal complete definition

toSqlRow

Methods

toSqlRow :: a -> [SqlValue] Source #

newtype Parser a Source #

Constructors

Parser 

Fields

Instances

Monad Parser Source # 

Methods

(>>=) :: Parser a -> (a -> Parser b) -> Parser b #

(>>) :: Parser a -> Parser b -> Parser b #

return :: a -> Parser a #

fail :: String -> Parser a #

Functor Parser Source # 

Methods

fmap :: (a -> b) -> Parser a -> Parser b #

(<$) :: a -> Parser b -> Parser a #

Applicative Parser Source # 

Methods

pure :: a -> Parser a #

(<*>) :: Parser (a -> b) -> Parser a -> Parser b #

(*>) :: Parser a -> Parser b -> Parser b #

(<*) :: Parser a -> Parser b -> Parser a #

parserApply :: Parser (a -> b) -> Parser a -> Parser b Source #

parserBind :: Parser a -> (a -> Parser b) -> Parser b Source #

class FromSqlRow a where Source #

Minimal complete definition

parseSqlRow

fromSqlRow :: (FromSqlRow a, Monad m) => [SqlValue] -> m a Source #

class (ToSqlRow a, FromSqlRow a) => SqlRow a Source #