diff --git a/htoml-megaparsec.cabal b/htoml-megaparsec.cabal
--- a/htoml-megaparsec.cabal
+++ b/htoml-megaparsec.cabal
@@ -1,6 +1,6 @@
 cabal-version: 1.18
 name: htoml-megaparsec
-version: 1.1.0.4
+version: 1.2.0.1
 license: BSD3
 license-file: LICENSE
 copyright: (c) 2013-2016 Cies Breijs, 2017-2018 Vanessa McHale
@@ -34,8 +34,9 @@
         Text.Toml
         Text.Toml.Parser
         Text.Toml.Types
-        Text.Megaparsec.CharRW
     hs-source-dirs: src
+    other-modules:
+        Text.Megaparsec.CharRW
     default-language: Haskell2010
     ghc-options: -Wall
     build-depends:
diff --git a/src/Text/Toml.hs b/src/Text/Toml.hs
--- a/src/Text/Toml.hs
+++ b/src/Text/Toml.hs
@@ -11,5 +11,7 @@
 -- | Parse a 'Text' that results in 'Either' a 'TomlError'
 -- containing the error message, or an internal representation
 -- of the document as a 'Table'.
-parseTomlDoc :: String -> Text -> Either TomlError Table
+parseTomlDoc :: FilePath -- ^ For error generation
+             -> Text -- ^ TOML source
+             -> Either TomlError Table
 parseTomlDoc = flip evalState mempty .* runParserT tomlDoc
