Quantcast

problem building haskell-src

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

problem building haskell-src

Nicholas Tung-2
Hi all,

    I'm having some trouble building haskell-src. If anyone could give
me any pointers, I'd appreciate it very much. The error is with an
ambiguous module name,

gatoatigrado@hz:~> cabal install haskell-src
Resolving dependencies...
Configuring haskell-src-1.0.1.4...
Building haskell-src-1.0.1.4...
Preprocessing library haskell-src-1.0.1.4...
shift/reduce conflicts:  2
Implicit import declaration:
    Ambiguous module name `Prelude':
      it was found in multiple packages: base haskell98-2.0.0.0
cabal: Error: some packages failed to install:
haskell-src-1.0.1.4 failed during the building phase. The exception was:
ExitFailure 1

    There are some conflicts with ghc-pkg check; see output for
ghc-pkg list and ghc-pkg check here if it helps [
http://pastebin.com/HR0y6u1a ]. The error came up when I tried to
compile my own sources, but then I ran ghc-pkg hide haskell98 and it
works. (building haskell-src still fails.)

Thanks very much,
Nicholas — https://ntung.com — 4432-nstung

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: problem building haskell-src

Antoine Latter-2
On Sat, Oct 1, 2011 at 8:40 PM, Nicholas Tung <[hidden email]> wrote:
> Hi all,
>
>     I'm having some trouble building haskell-src. If anyone could give
> me any pointers, I'd appreciate it very much. The error is with an
> ambiguous module name,
>

Hi Nicholas,

The haskell-src package needs to be patched to work with GHC 7.2.

If using GHC 7.0 is an option, it should work with that.

A similar package which does work with GHC 7.2 is haskell-src-exts:

http://hackage.haskell.org/package/haskell-src-exts

It has support for many haskell language extensions, so the AST types
are a bit more complex.

Antoine

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: problem building haskell-src

Nicholas Tung-2
On Sat, Oct 1, 2011 at 7:00 PM, Antoine Latter <[hidden email]> wrote:

> On Sat, Oct 1, 2011 at 8:40 PM, Nicholas Tung <[hidden email]> wrote:
>> Hi all,
>>
>>     I'm having some trouble building haskell-src. If anyone could give
>> me any pointers, I'd appreciate it very much. The error is with an
>> ambiguous module name,
>>
>
> Hi Nicholas,
>
> The haskell-src package needs to be patched to work with GHC 7.2.
>
> If using GHC 7.0 is an option, it should work with that.
>
> A similar package which does work with GHC 7.2 is haskell-src-exts:
>
> http://hackage.haskell.org/package/haskell-src-exts
>
> It has support for many haskell language extensions, so the AST types
> are a bit more complex.
>
> Antoine
>

Hi Antoine,

    I'm sorry for not specifying, I am using ghc 7.0.3

Thanks!
Nicholas — https://ntung.com — 4432-nstung

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: problem building haskell-src

Antoine Latter-2
On Sat, Oct 1, 2011 at 9:01 PM, Nicholas Tung <[hidden email]> wrote:

> On Sat, Oct 1, 2011 at 7:00 PM, Antoine Latter <[hidden email]> wrote:
>> On Sat, Oct 1, 2011 at 8:40 PM, Nicholas Tung <[hidden email]> wrote:
>>> Hi all,
>>>
>>>     I'm having some trouble building haskell-src. If anyone could give
>>> me any pointers, I'd appreciate it very much. The error is with an
>>> ambiguous module name,
>>>
>>
>> Hi Nicholas,
>>
>> The haskell-src package needs to be patched to work with GHC 7.2.
>>
>> If using GHC 7.0 is an option, it should work with that.
>>
>> A similar package which does work with GHC 7.2 is haskell-src-exts:
>>
>> http://hackage.haskell.org/package/haskell-src-exts
>>
>> It has support for many haskell language extensions, so the AST types
>> are a bit more complex.
>>
>> Antoine
>>
>
> Hi Antoine,
>
>    I'm sorry for not specifying, I am using ghc 7.0.3

Maybe I'm miss-understanding the problem.

Here's a reference for a similar error:

http://hackage.haskell.org/trac/ghc/ticket/4958

But it shouldn't have been a problem until GHC 7.2.1.

If your problem is the same, editing the .cabal file to remove the
reference to haskell98 should be enough - but that can be tricky if
you're not familiar with the process.

Antoine

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: problem building haskell-src

Nicholas Tung-2
On Sat, Oct 1, 2011 at 7:09 PM, Antoine Latter <[hidden email]> wrote:

> On Sat, Oct 1, 2011 at 9:01 PM, Nicholas Tung <[hidden email]> wrote:
>> On Sat, Oct 1, 2011 at 7:00 PM, Antoine Latter <[hidden email]> wrote:
>>> On Sat, Oct 1, 2011 at 8:40 PM, Nicholas Tung <[hidden email]> wrote:
>>>> Hi all,
>>>>
>>>>     I'm having some trouble building haskell-src. If anyone could give
>>>> me any pointers, I'd appreciate it very much. The error is with an
>>>> ambiguous module name,
>>>>
>>>
>>> Hi Nicholas,
>>>
>>> The haskell-src package needs to be patched to work with GHC 7.2.
>>>
>>> If using GHC 7.0 is an option, it should work with that.
>>>
>>> A similar package which does work with GHC 7.2 is haskell-src-exts:
>>>
>>> http://hackage.haskell.org/package/haskell-src-exts
>>>
>>> It has support for many haskell language extensions, so the AST types
>>> are a bit more complex.
>>>
>>> Antoine
>>>
>>
>> Hi Antoine,
>>
>>    I'm sorry for not specifying, I am using ghc 7.0.3
>
> Maybe I'm miss-understanding the problem.
>
> Here's a reference for a similar error:
>
> http://hackage.haskell.org/trac/ghc/ticket/4958
>
> But it shouldn't have been a problem until GHC 7.2.1.
>
> If your problem is the same, editing the .cabal file to remove the
> reference to haskell98 should be enough - but that can be tricky if
> you're not familiar with the process.
>
> Antoine
>

Yes, removing the "haskell98" reference seemed to make it work.

Thanks,
Nicholas

_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries
Loading...