File tree 2 files changed +20
-2
lines changed 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,10 @@ pathMain i p m o a =
121
121
<|> (skipBlockLine i >> pathMain i p m o a)
122
122
<|> pure
123
123
( map (<//> m) p
124
- <> [ p' <//> (o' <> " .hs" )
124
+ <> [ p' <//> (o'' <> " .hs" )
125
125
| p' <- p,
126
- o' <- filter (`notElem` a) o
126
+ o' <- filter (`notElem` a) o,
127
+ let o'' = T. replace " ." " /" o'
127
128
]
128
129
)
129
130
Original file line number Diff line number Diff line change @@ -90,6 +90,13 @@ spec = do
90
90
$ it " list with leading commas"
91
91
$ (" one\n , two\n , three3" :: Text ) ~> parseList 1
92
92
`shouldParse` [" one" , " two" , " three3" ]
93
+ describe " Should Succeed"
94
+ $ it " succesfully parses exe component with other-modules containing dots"
95
+ $ exeSection2 ~> parseExe 0
96
+ `shouldParse` [ Comp Exe " gen-hie" " app/Main.hs"
97
+ , Comp Exe " gen-hie" " app/Hie/Executable/Helper.hs"
98
+ , Comp Exe " gen-hie" " app/Hie/Executable/Utils.hs"
99
+ ]
93
100
94
101
exeSection :: Text
95
102
exeSection =
@@ -175,3 +182,13 @@ libSection3 =
175
182
\ , text\n \
176
183
\ default-language: Haskell2010\n \
177
184
\"
185
+
186
+ exeSection2 :: Text
187
+ exeSection2 =
188
+ " executable gen-hie\n \
189
+ \ other-modules:\n \
190
+ \ Hie.Executable.Helper\n \
191
+ \ Hie.Executable.Utils\n \
192
+ \ hs-source-dirs:\n \
193
+ \ app\n \
194
+ \ main-is: Main.hs \n "
You can’t perform that action at this time.
0 commit comments