We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e65aa commit 0428148Copy full SHA for 0428148
app/Main.hs
@@ -26,7 +26,7 @@ main = do
26
| otherwise -> cabal
27
gen f = do
28
f' <- T.readFile f
29
- case parseOnly parsePackage f' of
+ case parsePackage' f' of
30
Right r -> do
31
let hiePath = fst (splitFileName f) </> "hie.yaml"
32
T.writeFile hiePath $ fst sOrC r
src/Hie/Cabal/Parser.hs
@@ -21,6 +21,9 @@ data Package = Package Name [Component]
21
data Component = Lib Name Path | Exe Name Path | Test Name Path
22
deriving (Show, Eq, Ord)
23
24
+parsePackage' :: Text -> Either String Package
25
+parsePackage' = parseOnly parsePackage
+
parsePackage :: Parser Package
parsePackage =
( do
0 commit comments