Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bitemyapp/bloodhound
Browse files Browse the repository at this point in the history
  • Loading branch information
bitemyapp committed Sep 14, 2015
2 parents f28180c + b169376 commit 7b0c801
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bloodhound.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ library
exceptions,
data-default-class,
blaze-builder,
unordered-containers
unordered-containers,
mtl-compat
default-language: Haskell2010

test-suite tests
Expand Down
3 changes: 2 additions & 1 deletion src/Database/Bloodhound/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ bindM2 f ma mb = join (f <$> ma <*> mb)
-- settings in IO. If you've got your own monad transformer stack, you
-- should use 'runBH' directly.
withBH :: ManagerSettings -> Server -> BH IO a -> IO a
withBH ms s f = withManager ms $ \mgr -> do
withBH ms s f = do
mgr <- newManager ms
let env = BHEnv { bhServer = s
, bhManager = mgr }
runBH env f
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Bloodhound/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ module Database.Bloodhound.Types

import Control.Applicative
import Control.Monad.Catch
import Control.Monad.Error
import Control.Monad.Except
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.Writer
Expand Down
3 changes: 3 additions & 0 deletions src/Database/Bloodhound/Types/Class.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{-# LANGUAGE CPP #-}
module Database.Bloodhound.Types.Class
( Seminearring(..) )
where

#if !MIN_VERSION_base(4,8,0)
import Data.Monoid
#endif

class Monoid a => Seminearring a where
-- 0, +, *
Expand Down

0 comments on commit 7b0c801

Please sign in to comment.