diff --git a/Web/Twitter/Conduit.hs b/Web/Twitter/Conduit.hs
--- a/Web/Twitter/Conduit.hs
+++ b/Web/Twitter/Conduit.hs
@@ -26,6 +26,7 @@
        , module Web.Twitter.Conduit.Parameters
 
        , MediaData (..)
+#if !MIN_VERSION_twitter_types(0,5,0)
        , UploadedMedia
        , mediaId
        , mediaSize
@@ -34,6 +35,7 @@
        , imageWidth
        , imageHeight
        , imageType
+#endif
        ) where
 
 import Web.Twitter.Conduit.Types
diff --git a/Web/Twitter/Conduit/Parameters/TH.hs b/Web/Twitter/Conduit/Parameters/TH.hs
--- a/Web/Twitter/Conduit/Parameters/TH.hs
+++ b/Web/Twitter/Conduit/Parameters/TH.hs
@@ -11,7 +11,7 @@
 
 snakeToLowerCamel :: String -> String
 snakeToLowerCamel [] = []
-snakeToLowerCamel ('_':[]) = []
+snakeToLowerCamel "_" = []
 snakeToLowerCamel ('_':x:xs) = toUpper x : snakeToLowerCamel xs
 snakeToLowerCamel str = f ++ snakeToLowerCamel next
   where (f, next) = span (/= '_') str
diff --git a/Web/Twitter/Conduit/Types.hs b/Web/Twitter/Conduit/Types.hs
--- a/Web/Twitter/Conduit/Types.hs
+++ b/Web/Twitter/Conduit/Types.hs
@@ -16,8 +16,10 @@
        , UsersCursorKey
        , WithCursor (..)
        , MediaData (..)
+#if !MIN_VERSION_twitter_types(0,5,0)
        , UploadedMedia (..)
        , ImageSizeType (..)
+#endif
        ) where
 
 
@@ -84,6 +86,7 @@
 data MediaData = MediaFromFile FilePath
                | MediaRequestBody FilePath RequestBody
 
+#if !MIN_VERSION_twitter_types(0,5,0)
 data ImageSizeType = ImageSizeType
     { imageWidth :: Int
     , imageHeight :: Int
@@ -107,6 +110,7 @@
                       <*> o .:  "size"
                       <*> o .:  "image"
     parseJSON v = fail $ "unknown value: " ++ show v
+#endif
 
 data Response responseType = Response
     { responseStatus :: Status
diff --git a/Web/Twitter/Conduit/Types/Lens.hs b/Web/Twitter/Conduit/Types/Lens.hs
--- a/Web/Twitter/Conduit/Types/Lens.hs
+++ b/Web/Twitter/Conduit/Types/Lens.hs
@@ -1,4 +1,5 @@
 {-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE CPP #-}
 
 module Web.Twitter.Conduit.Types.Lens
        ( TT.Response
@@ -9,6 +10,7 @@
        , previousCursor
        , nextCursor
        , contents
+#if !MIN_VERSION_twitter_types(0,5,0)
        , TT.ImageSizeType
        , imageWidth
        , imageHeight
@@ -17,6 +19,7 @@
        , mediaId
        , mediaSize
        , mediaImage
+#endif
        , TT.TwitterErrorMessage
        , twitterErrorMessage
        , twitterErrorCode
@@ -26,7 +29,9 @@
 import Web.Twitter.Conduit.Types.TH
 
 makeLenses ''TT.WithCursor
+#if !MIN_VERSION_twitter_types(0,5,0)
 makeLenses ''TT.ImageSizeType
 makeLenses ''TT.UploadedMedia
+#endif
 makeLenses ''TT.Response
 makeLenses ''TT.TwitterErrorMessage
diff --git a/twitter-conduit.cabal b/twitter-conduit.cabal
--- a/twitter-conduit.cabal
+++ b/twitter-conduit.cabal
@@ -1,5 +1,5 @@
 name:              twitter-conduit
-version:           0.0.5.6
+version:           0.0.5.7
 license:           BSD3
 license-file:      LICENSE
 author:            HATTORI Hiroki, Hideyuki Tanaka, Takahiro HIMURA
