diff --git a/Graphics/HsExif.hs b/Graphics/HsExif.hs
--- a/Graphics/HsExif.hs
+++ b/Graphics/HsExif.hs
@@ -696,7 +696,9 @@
 	hour <- getCharValue ' ' >> readDigit 2
 	minute <- getCharValue ':' >> readDigit 2
 	second <- getCharValue ':' >> readDigit 2
-	return $ LocalTime (fromGregorian year month day) (TimeOfDay hour minute second)
+	-- the realToFrac is workaround for a GHC 7.8.0->7.8.2 bug:
+	-- https://ghc.haskell.org/trac/ghc/ticket/9231
+	return $ LocalTime (fromGregorian year month day) (TimeOfDay hour minute $ realToFrac second)
 	where
 		readDigit x = liftM read $ count x getDigit
 
diff --git a/hsexif.cabal b/hsexif.cabal
--- a/hsexif.cabal
+++ b/hsexif.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                hsexif
-version:             0.5.0.1
+version:             0.5.0.2
 synopsis:            EXIF handling library in pure Haskell
 description:         The hsexif library provides functions for working with EXIF data
                      contained in JPEG files. Currently it only supports reading the data.
