FromRow is a sqlite-simple type class for reading SQL query results as Haskell values. Its fromRow method defines a RowParser that converts database row data into a chosen result type. section 16.3.2
Each column is parsed with FromField through field. Applicative syntax combines those field parsers in column order, matching a constructor’s arguments. section 16.3.2
Parsing a TodoEntry
A TodoEntry instance can read four selected columns directly: fromRow = TodoEntry <$> field <*> field <*> field <*> field. Registering this instance lets query_ return [TodoEntry], while SQLite integer values are converted into the corresponding Haskell fields.
For standard data types, sqlite-simple supplies FromField parsers. Generic can also derive FromRow and ToRow instances when the datatype definition provides the required structure. section 16.4

