Skip to content

Commit

Permalink
Fixed naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zenzike committed May 14, 2011
1 parent 8dad09a commit 8667b94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Snap/Extension/HDBC.hs
Expand Up @@ -32,7 +32,7 @@ class (MonadSnap m) => MonadHDBC m where

-----------------------------------------------------------------------------
newtype HDBCState = HDBCState
{ _connection :: ConnWrapper
{ _connWrapper :: ConnWrapper
}

-- | An application that 'HasHDBCState' is a 'MonadHDBC' whose state
Expand All @@ -42,12 +42,12 @@ class HasHDBCState s where
setHDBCState :: HDBCState-> s -> s

instance HasHDBCState s => MonadHDBC (SnapExtend s) where
connWrapper = fmap _connection $ asks getHDBCState
connWrapper = fmap _connWrapper $ asks getHDBCState

instance (MonadSnap m, HasHDBCState s) => MonadHDBC (ReaderT s m) where
connWrapper = fmap _connection $ asks getHDBCState
connWrapper = fmap _connWrapper $ asks getHDBCState

instance InitializerState HDBCState where
extensionId = const "HDBC/HDBC"
mkCleanup = disconnect . _connection
mkCleanup = disconnect . _connWrapper
mkReload = const $ return ()

0 comments on commit 8667b94

Please sign in to comment.