Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions haskell-cabal.el
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,11 @@ PROCESS-TYPE determines the format of the returned target."
(val (car (split-string
(haskell-cabal-section-value section)))))
(if (equal (downcase component-type) "library")
(let ((lib-target (if (eq 'stack-ghci process-type)
(concat package-name ":lib")
(concat "lib:" package-name))))
(let* ((lib-name (if (not val)
(if (eq 'stack-ghci process-type) "lib" package-name)
val))
(lib-target (concat package-name ":" lib-name))
)
(push lib-target matches))
(push (concat (when (eq 'stack-ghci process-type)
(concat package-name ":"))
Expand Down