cabal repl failing silently on missing exposed-modules

Alois Cochard alois.cochard at gmail.com
Wed Aug 6 21:34:13 UTC 2014


Because it's actually not with a library but when building an executable,
sorry I should have specified that.


On 6 August 2014 22:31, cheater00 . <cheater00 at gmail.com> wrote:

> In the last email I meant that I don't see a reason to build a library
> without exposed-modules, sorry!
>
> On Wed, Aug 6, 2014 at 11:29 PM, cheater00 . <cheater00 at gmail.com> wrote:
> > The simplest thing to fix your case might be to emit an error when a
> > library is built with no exposed-modules (why would you build it
> > otherwise?)
> >
> > On Wed, Aug 6, 2014 at 7:53 PM, Alois Cochard <alois.cochard at gmail.com>
> wrote:
> >> Hi,
> >>
> >> I'm not sure if that relate to this problem so please ignore me if not.
> >>
> >> I had to spend quite a lot of time understanding what the issue had,
> when as
> >> you I had forget to add an entry for `exposed-modules` and trying to
> >> build...
> >> Basically I had an error saying that a symbol was missing or something
> like
> >> that (can remember the exact message), but every time I have that issue
> it
> >> take me a while to realise I have forget the entry...
> >>
> >> I think it's not a type error, it's kind of a linking error maybe
> that's why
> >> the repl fail silently.
> >>
> >> Anyway, I was wondering if it would be possible to give a more helpful
> error
> >> message in such case.
> >>
> >> Cheers
> >>
> >>
> >>
> >>
> >> On 6 August 2014 15:18, cheater00 . <cheater00 at gmail.com> wrote:
> >>>
> >>> Hi,
> >>> I have just spent some time trying to figure out why all of a sudden
> >>> "cabal repl" silently exits without an error message. What helped was
> >>> to take a project that could launch the repl and compare the cabal
> >>> files to my new project. It turns out the exposed-modules entry was
> >>> missing. I was wondering whether this behaviour was intentional, as I
> >>> don't recollect this happening before, but I don't have older systems
> >>> to test this on.
> >>>
> >>> The reason I wanted to run a repl without editing exposed modules was
> >>> to test some dependencies I pulled in to the sandbox with cabal
> >>> install. The package in question didn't have any code of its own yet.
> >>> In this case I would just expect ghci to load with the Prelude.
> >>>
> >>> Thanks!
> >>> _______________________________________________
> >>> Glasgow-haskell-users mailing list
> >>> Glasgow-haskell-users at haskell.org
> >>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> >>
> >>
> >>
> >>
> >> --
> >> Λ\ois
> >> http://twitter.com/aloiscochard
> >> http://github.com/aloiscochard
>



-- 
*Λ\ois*
http://twitter.com/aloiscochard
http://github.com/aloiscochard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140806/87b45835/attachment.html>


More information about the Glasgow-haskell-users mailing list