File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Cabal/src/Distribution/Simple Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import Distribution.Compat.Prelude
55
55
import Distribution.Compat.Environment (lookupEnv )
56
56
import Distribution.Pretty
57
57
import Distribution.Package
58
+ import Distribution.Parsec
58
59
import Distribution.System
59
60
import Distribution.Compiler
60
61
import Distribution.Simple.InstallDirs.Internal
@@ -462,6 +463,12 @@ instance Read PathTemplate where
462
463
| (path, s') <- readsPrec p s
463
464
, (template, " " ) <- reads path ]
464
465
466
+ instance Parsec PathTemplate where
467
+ parsec = parsecPathTemplate
468
+
469
+ parsecPathTemplate :: CabalParsing m => m PathTemplate
470
+ parsecPathTemplate = parsecFilePath >>= return . toPathTemplate
471
+
465
472
-- ---------------------------------------------------------------------------
466
473
-- Internal utilities
467
474
You can’t perform that action at this time.
0 commit comments