@@ -11,10 +11,9 @@ module Idris.Package.Parser where
1111import Idris.CmdOptions
1212import Idris.Imports
1313import Idris.Package.Common
14−import Idris.Parser.Helpers (HasLastTokenSpan, IdrisInnerParser, MonadicParsing,
15− eol, getLastTokenSpan, iName, identifier, isEol,
16− lchar, multiLineComment, packageName,
17− parseErrorDoc, reserved, runparser,
14+import Idris.Parser.Helpers (IdrisInnerParser, MonadicParsing, eol, iName,
15+ identifier, isEol, lchar, multiLineComment,
16+ packageName, parseErrorDoc, reserved, runparser,
1817 simpleWhiteSpace, singleLineComment)
1918
2019import Control.Applicative
@@ -29,9 +28,6 @@ import qualified Text.Trifecta as P
2928
3029type PParser = StateT PkgDesc IdrisInnerParser
3130
32−instance HasLastTokenSpan PParser where
33− getLastTokenSpan = return Nothing
34−
3531#if MIN_VERSION_base(4,9,0)
3632instance {-# OVERLAPPING #-} P.DeltaParsing PParser where
3733 line = lift P.line
@@ -83,7 +79,7 @@ pPkgName = (either fail pure . pkgName =<< packageName) <?> "PkgName"
8379-- | Parses a filename.
8480-- |
8581-- | Treated for now as an identifier or a double-quoted string.
86−filename :: (MonadicParsing m, HasLastTokenSpan m) => m String
82+filename :: (MonadicParsing m) => m String
8783filename = (do
8884 filename <- P.token $
8985 -- Treat a double-quoted string as a filename to support spaces.