Skip to content

Commit

Permalink
Fix examples compilation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alevy committed Oct 1, 2013
1 parent f0e6d45 commit cd9b394
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE TypeOperators, MultiParamTypeClasses, DeriveGeneric, OverloadedStrings #-}

import Control.Exception
import Data.AsTypeOf
import qualified Data.ByteString as S
import Data.Int
import Data.Maybe
Expand Down Expand Up @@ -105,12 +104,12 @@ selfjoin' :: IO [(Bar,Bar)]
selfjoin' = bracket mkc close $ \c ->
map (\(b1 :. b2) -> (b1, fromAs X b2)) <$>
findWhere "bar.bar_key = X.bar_parent" c ()
-}
getOne :: (Model a) => DBKeyType -> IO a
getOne k = bracket mkc close $ \c ->
let r = fromJust <$> findRow c (DBRef k `gAsTypeOf1` r)
in r
-}

data T1 = T1 deriving (Show, Generic)
instance RowAlias T1
Expand Down

0 comments on commit cd9b394

Please sign in to comment.