mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 22:02:07 +03:00
Update examples along with library updates.
This commit is contained in:
parent
c8c1874c8c
commit
d417e3eed9
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Account where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Branch where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Business where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Customer where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Department where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Employee where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Individual where
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Officer where
|
||||
|
||||
|
@ -5,7 +5,7 @@ import Database.Record
|
||||
|
||||
import Database.Relational.Query
|
||||
import Database.HDBC (IConnection, SqlValue)
|
||||
import Data.Int (Int32)
|
||||
import Data.Int (Int32, Int64)
|
||||
|
||||
import qualified Account
|
||||
import Account (Account(..), account)
|
||||
@ -182,7 +182,7 @@ union1' =
|
||||
-- ORDER BY open_emp_id
|
||||
-- @
|
||||
--
|
||||
group1 :: Relation () (Maybe Int32, Int32)
|
||||
group1 :: Relation () (Maybe Int32, Int64)
|
||||
group1 =
|
||||
aggregateRelation
|
||||
[ g >< count a
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
|
||||
|
||||
module Transaction where
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user