diff --git a/aws-lambda-haskell-runtime.cabal b/aws-lambda-haskell-runtime.cabal
--- a/aws-lambda-haskell-runtime.cabal
+++ b/aws-lambda-haskell-runtime.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: c32c10685c1457e10f31a39f118a1ba2c0de2316726998e049092a7072e56680
+-- hash: bb9ab608e3081e6e7eb875e81698026b23343c4e3c64e5ab89e4df76aeb280f3
 
 name:           aws-lambda-haskell-runtime
-version:        2.0.3
+version:        2.0.4
 synopsis:       Haskell runtime for AWS Lambda
 description:    Please see the README on GitHub at <https://github.com/theam/aws-lambda-haskell-runtime#readme>
 category:       AWS
@@ -56,7 +56,7 @@
     , bytestring
     , http-client
     , http-types
-    , path <0.7
+    , path >0.7
     , path-io
     , safe-exceptions-checked
     , template-haskell
diff --git a/src/Aws/Lambda/Meta/Discover.hs b/src/Aws/Lambda/Meta/Discover.hs
--- a/src/Aws/Lambda/Meta/Discover.hs
+++ b/src/Aws/Lambda/Meta/Discover.hs
@@ -42,7 +42,7 @@
   & Monad.filterM containsHandler
  where
   isHaskellModule file =
-    fileExtension file == ".hs"
+    fileExtension file == Just ".hs"
     && isNotIgnoredPath file
 
   isNotIgnoredPath file =
