Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module HieDb.Types
- module HieDb.Utils
- module HieDb.Create
- module HieDb.Query
- data h :. t = h :. t
Documentation
module HieDb.Types
module HieDb.Utils
module HieDb.Create
module HieDb.Query
A composite type to parse your custom data structures without having to define dummy newtype wrappers every time.
instance FromRow MyData where ...
instance FromRow MyData2 where ...
then I can do the following for free:
res <- query' c "..." forM res $ \(MyData{..} :. MyData2{..}) -> do ....
h :. t infixr 3 |
Instances
(Eq h, Eq t) => Eq (h :. t) | |
(Ord h, Ord t) => Ord (h :. t) | |
Defined in Database.SQLite.Simple.Types | |
(Read h, Read t) => Read (h :. t) | |
(Show h, Show t) => Show (h :. t) | |
(FromRow a, FromRow b) => FromRow (a :. b) | |
Defined in Database.SQLite.Simple.FromRow | |
(ToRow a, ToRow b) => ToRow (a :. b) | |
Defined in Database.SQLite.Simple.ToRow |