[Haskell-cafe] what's the best environment for haskell work?

Hamish Mackenzie hamish.k.mackenzie at googlemail.com
Fri Aug 6 03:46:33 EDT 2010


On 6 Aug 2010, at 19:33, David Virebayre wrote:
> Continuing on my Euler.hs example, I then created the cabal package
> with your script. Added the package, then tried to build.
> 
> ../Euler.hs:1:0:
>    Failed to load interface for `Prelude':
>      It is a member of the hidden package `base'.
>      Perhaps you need to add `base' to the build-depends in your .cabal file.
>      It is a member of the hidden package `base-3.0.3.2'.
>      Perhaps you need to add `base' to the build-depends in your .cabal file.
>      Use -v to see a list of the files searched for.
> 
> 
> I didn't find a way to automatically fill the dependencies, Ctrl-R
> doesn't seem to do something.
> I added base >= 4 using the package editor, then it build.

Yes Ctrl+R currently only fixes missing "import" errors where you called a function in a package you are using.  It does this by adding "import X ( f )" to your source.  We have had plans for a while to extend this so it can handle these "hidden package" errors too by updating the .cabal file. 

> By the way, did I mention you guys are doing an awesome job with leksah ?

Thanks

Hamish


More information about the Haskell-Cafe mailing list